πͺ Windows (Microsoft Store)
- πͺ Open Microsoft Store:
Press Win + S, type Microsoft Store, and press Enter.
- π Search for Python:
In the Store search bar, type Python.
- π± Select the latest Python version:
Choose the official Python 3.x app published by the Python Software Foundation.
- β¬οΈ Click Install:
This installs Python system-wide and includes pip.
- π§ͺ Verify Installation:
Open Command Prompt and run:
cmd
python --version
- You should see something like
Python 3.11.x.
π macOS
- β οΈ Note: Python 2.7 may be preinstalled, but you should install Python 3 manually.
- π Download from Official Site:
Visit python.org/downloads and download the latest macOS installer.
- π¦ Install Python:
Open the downloaded .pkg file and follow the installer prompts.
- π Add Python to your shell path (if needed):
Usually automatic, but you can verify by running:
bash
python3 --version
- π οΈ Optional: Use Homebrew (recommended for developers):
Open Terminal and run:
bash
brew install python
- π§ͺ Verify Installation:
bash
python3 --version
π§ Ubuntu (and other Debian-based Linux)
- π» Open Terminal
- π¦ Update your package list:
bash
sudo apt update
bash
sudo apt install python3
- π¦ Install pip (Python package manager):
bash
sudo apt install python3-pip
- π§ͺ Verify Installation:
bash
python3 --version pip3 --version
You must be logged in to post a comment.