Install Python 3.14: Windows, macOS, and Linux
What you’ll build
Section titled “What you’ll build”By the end of this guide you will have Python 3.14 installed, the interpreter available on your PATH, pip working, and a simple test script running. The same steps apply whether you are setting up a personal machine or preparing a CI environment.
Prerequisites
Section titled “Prerequisites”| Requirement | Notes |
|---|---|
| OS | Windows 10/11, macOS 12+, or any current Linux distro |
| Disk space | ~200 MB for the interpreter; more for packages |
| Admin rights | Required for system-wide install on Windows/macOS; not required for user install |
Step 1 — Download Python
Section titled “Step 1 — Download Python”Go to the official downloads page and download the installer for Python 3.14 (or the latest 3.x stable release). Avoid Python 2 — it has been end-of-life since 2020.
Python 3.14 is the current stable release as of late 2026. If a project requires a specific older version, use pyenv (macOS/Linux) or py launcher (Windows) to manage multiple versions side by side.
Step 2 — Install
Section titled “Step 2 — Install”Windows
Section titled “Windows”- Run the downloaded
.exeinstaller. - On the first screen, check “Add python.exe to PATH” before clicking Install Now. This is the most important option — without it you cannot run
pythonfrom a terminal. - Choose “Install Now” (recommended) for the default location, or “Customize installation” if you need a specific directory.
- When the installer completes, click “Disable path length limit” if prompted (Windows 10/11). This removes a 260-character MAX_PATH restriction that can cause issues with deeply nested packages.
Option A — Official installer (recommended for a standalone install):
- Download the
.pkginstaller from python.org. - Run it and follow the prompts.
- The installer adds a
python3binary to/usr/local/bin. The macOS systempython3(from Xcode Command Line Tools) is unaffected.
Option B — Homebrew (convenient if you already use brew):
brew install python@3.14Homebrew installs Python to /opt/homebrew/bin/python3.14 (Apple Silicon) or /usr/local/bin/python3.14 (Intel). Add the bin directory to your PATH if it is not already there.
Most distributions ship with Python 3 but not necessarily the latest version. Install the latest stable release:
Ubuntu / Debian:
sudo apt updatesudo apt install python3.14 python3.14-venv python3.14-devFedora:
sudo dnf install python3.14From source (if your package manager doesn’t have 3.14):
sudo apt install build-essential libssl-dev zlib1g-devwget https://www.python.org/ftp/python/3.14.0/Python-3.14.0.tgztar xf Python-3.14.0.tgzcd Python-3.14.0./configure --enable-optimizationsmake -j$(nproc)sudo make altinstall # altinstall avoids overwriting /usr/bin/python3Step 3 — Verify the installation
Section titled “Step 3 — Verify the installation”Open a new terminal (important — a terminal opened before install won’t have the updated PATH):
python --version# Expected: Python 3.14.x
python3 --version# On macOS/Linux, python3 is the standard command
python -m pip --version# Expected: pip 24.x from /path/to/python3.14/...If python is not found on Windows, the PATH was not set during install. Re-run the installer and check the “Add to PATH” option, or add it manually via System Properties → Environment Variables.
Step 4 — Upgrade pip
Section titled “Step 4 — Upgrade pip”The installer ships with a pip version that may be several months old:
python -m pip install --upgrade pipAlways use python -m pip rather than bare pip. This ensures pip runs under the same interpreter, not a different Python version that may also be on the PATH.
Step 5 — Run a test script
Section titled “Step 5 — Run a test script”Create hello.py:
import sysprint(f"Python {sys.version}")print("Installation successful")Run it:
python hello.py# Python 3.14.0 (main, Oct 2026, ...) [GCC ...]# Installation successfulTroubleshooting
Section titled “Troubleshooting”| Problem | Cause | Fix |
|---|---|---|
python: command not found |
Not on PATH | Re-run installer with “Add to PATH”, or add manually |
python runs Python 2 on macOS |
macOS ships Python 2 at /usr/bin/python |
Use python3 command, or add Python 3 earlier in PATH |
pip installs to the wrong Python |
Multiple Pythons on PATH | Always use python -m pip to target the right interpreter |
python and pip target different versions |
PATH ordering | Check python -m pip --version to confirm they match |
| ImportError for a package you installed | Installed in wrong Python | Use python -m pip install <package> and run with the same python |
Multiple Python versions
Section titled “Multiple Python versions”For projects that require different Python versions, use:
- Windows: the
pylauncher.py -3.11 script.pyruns with Python 3.11;py -3.14 script.pywith 3.14. - macOS / Linux:
pyenv. Install pyenv, thenpyenv install 3.14.0andpyenv local 3.14.0to set a per-directory version.
Next steps
Section titled “Next steps”- Python setup guide — virtual environments and project layout
- Modules and packages — pip in depth, requirements.txt
- Python tools overview — pip, uv, poetry, pyenv compared
Official references
Section titled “Official references”- python.org/downloads — official installers
- Python 3.14 release notes — what changed
- pip user guide — pip documentation