Install Python

Install Python 3 and confirm both python and pip are available from your terminal.

beginner5 minmacos · windows · linuxUpdated August 2026
#python#pip#installation

Requirements

  • Terminal access

Choose your platform

0/2 steps · 0%
01

Install with Homebrew

bash
$ brew install python

Note

macOS ships with an old system Python used by the OS itself — don't rely on it for projects. Homebrew's version is kept current and separate.

02

Verify the installation

bash
$ python3 --version
$ pip3 --version

Expected output

Python 3.1x.x
pip 24.x.x

Success

Python and pip are ready.

Troubleshooting

On macOS and Linux, the command is usually `python3`, not `python`. On Windows, this means PATH wasn't updated during install.

bash
$ python3 --version

On Windows, re-run the installer, choose Modify, and make sure Add python.exe to PATH is checked.