How to Install Python on Windows, Mac, and Linux (2026 Guide)
Python 3.14 dropped in October 2025 and it is now the default recommendation for anyone starting out in 2026. If you are on Windows, half the tutorials on the internet will tell you to download an installer from python.org and click Next four times. That works — until it does not, and then you spend three hours on Stack Overflow figuring out why python opens the Microsoft Store instead of a REPL.
This guide is the version I wish I had when I was setting up Python on a fresh laptop for a placement bootcamp. No fluff, no screenshots of installer wizards from 2018. Just the exact commands, the exact errors you will hit, and how to fix them.
Install Python 3.14 on Windows 10 and 11 the correct way
Do not install from the Microsoft Store. It sandboxes the interpreter and breaks half the packages you will want to use (pandas, numpy with native wheels, anything touching the filesystem outside your user folder).
Go to python.org/downloads and grab the Windows installer (64-bit). When the installer opens, check both boxes at the bottom before you click Install Now:
- Add python.exe to PATH
- Use admin privileges when installing py.exe
The first checkbox is the one 80% of Windows users miss. Without it, opening PowerShell and typing python will either do nothing or launch the Microsoft Store. If you already installed without it, uninstall from Settings > Apps, and reinstall with the box ticked. Do not try to fix PATH manually the first time — the installer does it correctly.
Verify it worked:
python --version
# Python 3.14.0
pip --version
# pip 24.3.1 from C:\Users\...\Python314\Lib\site-packages\pip (python 3.14)
If python still opens the Store, run where python — if the first result contains WindowsApps, that is your ghost. Open Settings > Apps > Advanced app settings > App execution aliases and turn off both python.exe and python3.exe toggles. Restart PowerShell.
Install Python on macOS without breaking the system Python
macOS ships with a system Python at /usr/bin/python3 — do not touch it. Apple uses it for internal scripts and upgrading it will break things you did not know depended on it.
Use Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python@3.14
On Mac, the command is python3, not python. If you want python to work, add an alias to ~/.zshrc:
alias python=python3
alias pip=pip3
Then source ~/.zshrc and you are done.
Install Python on Ubuntu, Debian, and Fedora without sudo pip
Ubuntu 24.04 ships with Python 3.12 and Ubuntu 25.10 ships with 3.13. If you want 3.14 on Ubuntu today, use the deadsnakes PPA:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.14 python3.14-venv python3.14-dev
The one rule on Linux: never run sudo pip install. Ever. It writes packages into system directories, conflicts with your package manager, and eventually corrupts the interpreter your OS depends on. Use a virtual environment. Always.
Set up pip, venv, and your first virtual environment
A virtual environment is an isolated folder that holds a specific Python version and its packages. Every project you build should have its own. This is not optional — it is the difference between a working laptop and a dependency-hell laptop six months in.
mkdir my-project && cd my-project
python -m venv .venv
# Windows
.venv\Scripts\activate
# Mac/Linux
source .venv/bin/activate
pip install requests pandas
You will see (.venv) prepended to your shell prompt. Add .venv/ to your .gitignore immediately.
Fix the five install errors everyone hits
'python' is not recognized— PATH is not set. Reinstall on Windows with the checkbox ticked.pythonopens the Microsoft Store — Turn off App execution aliases in Settings.pip: command not found— Usepython -m pip install <package>instead.error: externally-managed-environment— Create a venv.SSL: CERTIFICATE_VERIFY_FAILEDon Mac — Run/Applications/Python\ 3.14/Install\ Certificates.command.
Or skip all of this and use PyRun in your browser
Here is the honest take: if you are learning Python for placements, or you want to try a tutorial without breaking your weekend on installer errors, you do not need to install anything at all.
PyRun runs Python 3.14 directly in your browser using WebAssembly. No PATH errors. No python vs python3 confusion. Open a tab, write code, hit run. It works on a Chromebook. It works on a phone. It works on the college lab machine where you do not have admin rights.
You get the same pandas, numpy, requests, and 200+ other packages that would take you an hour to install locally. The free tier is enough for the first 3 months of any Python course.
The takeaway: Install locally if you are shipping production code. Learn in-browser if you are still figuring out what for loops do. Do not mix the two.