Download Python from python.org on Windows and macOS, or use your package manager on Linux. Then run python --version or python3 --version to confirm it works. We ran the Linux steps on Ubuntu 24.04 ourselves. The Windows and macOS steps come from the official Python docs.
Definition: Python is a general-purpose programming language. Its installer adds the interpreter, the pip package tool and the standard library to your computer.
Which Python Version Should You Install?
Install the newest stable release unless a project asks for an older one. On 2 December 2026, the python.org download page lists Python 3.15.2 as the latest version. Your computer may already hold a different version, so check before you add another.
Run python3 --version first. On our Ubuntu test machine it printed Python 3.13.18.
How Do You Install Python on Windows?
The Python install manager is the recommended Windows installer, according to the Python Windows documentation. You can get it from the Microsoft Store or as an MSIX file from python.org. Then you use the py command to add, update or remove Python versions.
- Download the install manager (python-manager-26.4.msix) from python.org, or open it in the Microsoft Store.
- Open Command Prompt and run py list --online to see the versions you can install.
- Run py install 3.15 to install that version.
- Run python --version to confirm.
py install 3.15
py install --update
py uninstall 3.15If you prefer a classic installer, python.org also offers a standalone .exe, named python-3.15.2-amd64.exe when we checked. We could not run Windows here, so these steps are untested.
Can You Install Python with WinGet?
Yes. The Python docs give a WinGet command for the install manager. Run it in Command Prompt or PowerShell, then use py install as shown above. WinGet only installs the manager itself, so you still choose the Python version yourself afterwards.
winget install 9NQ7512CXL7T -e --accept-package-agreements --disable-interactivityHow Do You Install Python on macOS?
Download the .pkg installer from python.org and open it. The macOS documentation says it runs on Apple Silicon and Intel Macs and needs an administrator account. It puts Python in the Applications folder, under a folder named for the version.
Afterwards, open that folder and run Install Certificates.command. Without it, HTTPS requests can fail, as our guide to fixing certificate verify failed errors in Python explains.
Homebrew also works with brew install python, but the Python docs call it a third-party option that can lag behind. Leave Apple's own /usr/bin/python3 alone, because the developer tools use it.
How Do You Install Python on Linux?
Most Linux systems already ship Python 3, and every major distribution packages it. So use your package manager instead of a download. On our Ubuntu 24.04 test machine, apt-get install --dry-run python3 reported that python3 was already the newest version, 3.12.3.
| Distribution | Command | Tested here |
|---|---|---|
| Ubuntu and Debian | sudo apt install python3 python3-pip python3-venv | Dry run only |
| Fedora | sudo dnf install python3 | No |
| Arch Linux | sudo pacman -S python | No |
You can also build from source with ./configure, make and make altinstall. The docs recommend altinstall, because it keeps the system python3 untouched.
How Do You Check That Python Installed Correctly?
Run the version command, then see which program answers. On Linux and macOS use python3, while on Windows use python or py. When several copies exist, the first one in your PATH wins. So which -a python3 shows every copy in order.

Real output from our Ubuntu 24.04 test machine.
The pip line matters too. If pip answers, you can install packages right away.
How Do You Create a Virtual Environment?
Run python3 -m venv name in your project folder, then activate it. Inside the environment, python and pip point to a private copy, so packages never touch the system. We tested this on Linux, and which python changed from the system path to the project folder.

Activating the environment changes which python runs. Deactivating restores it.
On Windows, you activate with name\Scripts\Activate, according to the Python docs. Our guide to the Python requests SSL error starts from this kind of setup.
How Do You Run Two Python Versions Side by Side?
Call each version by its full command name. On our Ubuntu machine, python3.12 and python3.13 both answered, and each printed its own version. On Windows, the install manager does the same job with py -V:3.15, according to the Python docs.
python3.12 --version
python3.13 --versionPlain python3 follows your PATH order, so it can change after a new install. Name the version in scripts and virtual environments, then the result stays the same.
Why Does Pip Say Externally-managed-environment on Linux?
Debian and Ubuntu mark the system Python as externally managed, so pip refuses to install into it. On our Ubuntu 24.04 machine, the marker file sits at /usr/lib/python3.12/EXTERNALLY-MANAGED. The fix is simple: use a virtual environment, or install the package with apt.

The error we got when we ran pip against the system Python 3.12.
What If Windows Says Python Is Not Recognized?
Windows cannot find python in your PATH. The Python docs say the install manager can add %LocalAppData%\Python\bin to PATH. Keep the WindowsApps folder in PATH too, because the aliases live there. Then open a new Command Prompt, since old windows keep the old PATH.
As a quick workaround, use py instead of python. We could not reproduce this on Windows, so it comes from the official docs.
Frequently Asked Questions
Is Python installation free?
Yes. Python is open source, and the installers on python.org cost nothing.
How do I download Python for Windows 11?
Get the install manager from python.org or the Microsoft Store. Then run py install 3.15 in Command Prompt.
Can I use WinGet to install Python?
Yes. WinGet installs the Python install manager. You then pick the Python version with the py install command.
How do I check my Python version?
Run python3 --version on Linux and macOS, or python --version on Windows.
Do I need a virtual environment?
It is not required, but it is the safest habit. Each project gets its own packages, and the system Python stays clean.
Does the macOS installer fix SSL errors?
It does after you run Install Certificates.command from the Python folder. We did not test this on a Mac.
