Back to Getting started

Installation

To run Python on your computer, you need two things:

  • Python
  • A code editor such as VS Code

Install Python

  1. Open the Python download page.
  2. Click Download Python 3.x.x for your operating system.
  3. Run the installer.
    • Windows: check Add Python to PATH, then install.
    • macOS: open the downloaded .pkg file and continue through the installer.
  4. Verify the installation:
python --version

On macOS, you may need:

python3 --version

Install a code editor

VS Code is a common choice.

  1. Open the VS Code download page.
  2. Download and run the installer.
  3. Open VS Code and install the Python extension if needed.

Next: Three ways to run code