C.W.K.
Stream
Lesson 02 of 05 · published

Install Python (and pip comes free)

~8 min · pip, installation, python

Level 0Newbie
0 XP0/55 lessons0/16 achievements
0/80 XP to next level80 XP to go0% complete

The fastest way to get pip is to install Python via Homebrew. Modern Python ships with pip built in — no separate install needed.

On macOS, the system Python is unreliable for development — Apple ships an old version, and they don't intend it for everyday Python work. Always install your own Python via Homebrew, pyenv, or uv. The cleanest one-shot Mac setup is brew install python@3.13 (or whichever version is current), which gives you both python3.13 and pip3.13 on PATH.

After install, verify with python3 --version and pip3 --version. The 3 suffix matters historically because macOS used to ship a system Python 2 — the suffix avoided confusion. On a modern Apple Silicon Mac with no system Python 2, you can usually use python and pip too, but the explicit 3 stays safer.

Upgrade pip itself with pip3 install --upgrade pip. The pip bundled with a Python release is whatever was current at release time — often a few minor versions behind.

Code

Install Python + verify pip·bash
# Install a current Python via Homebrew
brew install python@3.13

# Verify
python3.13 --version    # Python 3.13.x
pip3.13 --version       # pip x.y.z from .../python3.13/site-packages/pip ...

# Or use the unsuffixed names
python3 --version
pip3 --version

# Upgrade pip itself (the bundled version is often a few minor versions old)
pip3 install --upgrade pip

External links

Exercise

Run 'which python3' and 'which pip3' to see exactly which executables you're using. Then 'pip3 list' to see what packages came pre-installed. Most are pip's own dependencies — the wheel package, setuptools, etc. If you see hundreds of packages, you've likely been installing things globally; that's a habit to break in the next lesson.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.