Skip to main content
Installing Python is the first concrete step toward building with it. The process differs slightly depending on your operating system, but the end result is the same: a python3 (or python) executable on your PATH, a package manager called pip, and a working interactive interpreter you can launch from your terminal. This page gives you an overview of each platform and the verification commands you will run after installing. If you want the full step-by-step walkthrough, jump to your platform guide directly from the cards below.

Choose your operating system

Windows

Windows 10 or 11 — installer from python.org with PATH setup instructions.

macOS

Mac computers — official .pkg installer or Homebrew.

Linux

Ubuntu, Debian, Fedora, Arch, and more — via your system package manager.

Quick installation overview

  1. Download the latest Python installer from python.org/downloads.
  2. Run the installer — check “Add python.exe to PATH” before clicking Install Now.
  3. Open Windows Terminal and verify:
If you skip the “Add to PATH” checkbox, the python command won’t be recognised in any terminal. See the Windows guide for the fix.

Verifying your installation

Once you have installed Python, open a terminal and run the appropriate command for your platform:
You should see output like:
If python3 is not found on Windows, try python — they often refer to the same installation. On macOS and Linux, always prefer python3 to avoid accidentally invoking a legacy Python 2 binary.
Also confirm that pip (the Python package manager) is available — you will need it throughout this course:
Expected output (version numbers will vary):

Test the interactive interpreter

Python ships with an interactive interpreter called the REPL (Read-Eval-Print Loop). You can use it to run Python expressions one line at a time — great for quick experiments:
You will see the >>> prompt, which means Python is ready:
Try a quick command:
To exit the interpreter, type exit() or press Ctrl + D (macOS/Linux) / Ctrl + Z then Enter (Windows).
If anything doesn’t work as expected, head to the detailed guide for your platform — each one includes a thorough troubleshooting section.

Platform-specific guides

Windows — Full Guide

Covers PATH setup, the Microsoft Store conflict, and multiple Python versions.

macOS — Full Guide

Covers Homebrew vs. direct download, certificate errors, and shell configuration.

Linux — Full Guide

Covers apt, dnf, pacman, the deadsnakes PPA, and virtual environment best practices.