Overview
You can install Python on any system (Windows, macOS, or Linux) in just a few minutes. The core idea is always the same: download Python 3.x, run the installer, enable PATH, and verify the installation.
Download Python from python.org → run installer → enable PATH → verify with
python --version.
🐍 How to Install Python (Deep Dive)
🪟 Installing Python on Windows (10/11)
1. Download Python
Go to python.org/downloads
and download the latest Python 3 installer (.exe).
Reference: GeeksForGeeks – Download and Install Python 3
2. Run the Installer
During installation, make sure you:
- Check the box
Add Python to PATH(critical step) - Then click Install Now
This ensures you can run python from Command Prompt.
Reference:
learnpython.online – Install Python on Windows/macOS/Linux
3. Verify Installation
Open Command Prompt and run:
python --version
pip --version
If Python is installed, you’ll see something like:
Python 3.13.x
If you get “python not found,” PATH wasn’t added—fix it via
System → Environment Variables.
Reference:
learnpython.online – PATH and verification
🍏 Installing Python on macOS
macOS ships with Python 2, so don’t use the built‑in version. Install a modern Python 3 instead. Reference: pythontutorial.org – Installing Python
Option A — Official Installer (Recommended)
- Download the macOS
.pkginstaller from python.org - Run the installer and follow the prompts
- Open Terminal and verify:
python3 --version
pip3 --version
Reference: learnpython.online – macOS installation
Option B — Homebrew
If you use Homebrew, you can install Python with:
brew install python
python3 --version
Reference: pythontutorial.org – Homebrew option
Optional: Make python point to python3
alias python=python3
alias pip=pip3
Reference: learnpython.online – aliases
🐧 Installing Python on Linux
Most Linux distros already include Python 3. Check with:
python3 --version
Reference: learnpython.online – Linux installation
If you need to install or upgrade
Ubuntu / Debian
sudo apt update
sudo apt install python3 python3-pip python3-venv
Fedora
sudo dnf install python3 python3-pip
Arch Linux
sudo pacman -S python python-pip
Reference: learnpython.online – distro-specific commands
Advanced: Build from Source
For advanced users, you can build Python from source: download the source, configure, build, and install. Full guide: Real Python – Installing Python
🔍 Verifying Python Installation (All Systems)
Run these commands to confirm Python and pip are installed correctly:
python --version
python3 --version
pip --version
pip3 --version
If both Python and pip respond with versions (e.g. Python 3.13.x),
your installation is complete.
🧰 Optional: Create a Virtual Environment
Virtual environments let you isolate project dependencies. After Python is installed, you can create one with:
python -m venv .venv
# macOS / Linux
source .venv/bin/activate
# Windows
.\venv\Scripts\activate
Reference: pythontutorial.org – venv basics
🧭 What do you want next?
- Python installation on Mac
- Python installation on Linux
- Python installation verification
Tell me your device and OS, and this guide can be tailored into a shorter, OS-specific checklist.