Getting started 2. Installation
Installation
To run Python on your computer, you need two things:
- Python
- A code editor such as VS Code
Install Python
- Open the Python download page.
- Click
Download Python 3.x.xfor your operating system. - Run the installer.
- Windows: check
Add Python to PATH, then install. - macOS: open the downloaded
.pkgfile and continue through the installer.
- Windows: check
- Verify the installation:
python --version
On macOS, you may need:
python3 --version
Install a code editor
VS Code is a common choice.
- Open the VS Code download page.
- Download and run the installer.
- Open VS Code and install the Python extension if needed.