Skip to content

Install Python 3.14: Windows, macOS, and Linux

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.

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

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.

  1. Run the downloaded .exe installer.
  2. 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 python from a terminal.
  3. Choose “Install Now” (recommended) for the default location, or “Customize installation” if you need a specific directory.
  4. 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):

  1. Download the .pkg installer from python.org.
  2. Run it and follow the prompts.
  3. The installer adds a python3 binary to /usr/local/bin. The macOS system python3 (from Xcode Command Line Tools) is unaffected.

Option B — Homebrew (convenient if you already use brew):

Terminal window
brew install python@3.14

Homebrew 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:

Terminal window
sudo apt update
sudo apt install python3.14 python3.14-venv python3.14-dev

Fedora:

Terminal window
sudo dnf install python3.14

From source (if your package manager doesn’t have 3.14):

Terminal window
sudo apt install build-essential libssl-dev zlib1g-dev
wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0.tgz
tar xf Python-3.14.0.tgz
cd Python-3.14.0
./configure --enable-optimizations
make -j$(nproc)
sudo make altinstall # altinstall avoids overwriting /usr/bin/python3

Open a new terminal (important — a terminal opened before install won’t have the updated PATH):

Terminal window
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.

The installer ships with a pip version that may be several months old:

Terminal window
python -m pip install --upgrade pip

Always 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.

Create hello.py:

import sys
print(f"Python {sys.version}")
print("Installation successful")

Run it:

Terminal window
python hello.py
# Python 3.14.0 (main, Oct 2026, ...) [GCC ...]
# Installation successful
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

For projects that require different Python versions, use:

  • Windows: the py launcher. py -3.11 script.py runs with Python 3.11; py -3.14 script.py with 3.14.
  • macOS / Linux: pyenv. Install pyenv, then pyenv install 3.14.0 and pyenv local 3.14.0 to set a per-directory version.