Install Python on Windows, macOS, and Linux (original) (raw)

Skip to content

Summary: in this tutorial, you’ll learn how to install Python on your computer, including Windows, macOS, and Linux.

Download Python Installer #

Run the installer [#](#run-the-installer "Anchor for Run the installer")

Double-click the installer file to run the installer.

In the installer window:

It’ll take a few minutes to complete the setup.

Verify the installation #

If you see the following output from the Command Prompt after typing the python command:

'python' is not recognized as an internal or external command, operable program or batch file.Code language: Shell Session (shell)

It’s likely that you didn’t check the Add Python to PATH checkbox when you installed Python.

Install Python on macOS #

It’s recommended to install Python on macOS using an official installer. Here are the steps:

Install Python on Linux #

Before installing Python 3 on your Linux distribution, you check whether Python 3 was already installed by running the following command from the terminal:

python3 --version

If you see a response with the version of Python, then your computer already has Python 3 installed. Otherwise, you can install Python 3 using a package management system.

For example, you can install Python 3.13 on Ubuntu using apt:

sudo apt install python3.13Code language: CSS (css)

To install the newer version, you replace 3.13 with that version.

Was this tutorial helpful ?