Install Python

To program in Python you first need to install it on your PC or laptop so that the system can recognise it.
Below you will find the instructions to install Python on different operating systems.



Windows 10-11 Operating System

To install Python on Windows 10 or 11 operating systems you need to visit the official Python Foundation website in the downloads section:

Python Downloads

Once on the downloads page, download the latest stable version and during installation remember to check the box on "Add Python to PATH" or "Add to PATH", this way you can use Python directly from the Windows command terminal, i.e. cmd.exe.

Once the procedure is complete, you can verify the installation like this:

Search for the "cmd.exe" app or "Windows Command Terminal". Once opened, run the command:

python --version


If the result shows an output like this:

Python 3.11.8


Where the number depends on the version you installed, then Python has been installed correctly on your system.



Linux Operating System Ubuntu-Debian Distributions

To install Python on the Linux operating system Ubuntu and Debian distributions you can use the terminal directly. So open the terminal or "Terminal Emulator" and type the following command:

sudo apt update && sudo apt upgrade
This way you have updated APT, the Linux installation system and package manager. Now you can install Python with the following command:
sudo apt install python3 python3-pip python3-venv
You will occasionally be asked to confirm the installation, just type "Y" or "S", depending on your system's language, to proceed.

To verify the installation, you can run the command on the terminal:
python3 --version
If the output with the Python version appears, congratulations: Python has been installed correctly.



Installation on the Arch Linux Distribution

To install Python on Arch Linux a single terminal command is enough, which you can type directly:

sudo pacman -Syu python python-pip
This command will completely update the system and then automatically install Python. To verify the installation, type the command:
python --version
If the version appears correctly as defined above, then there are no problems and Python is installed correctly.



Installation on MacOS

To install Python on the MacOS system, you can follow this procedure:

Type Cmd + Space Then, if you don't have homebrew, copy this command, otherwise go directly to the Python installation:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After that, install Python:
brew install python
At the end of the installation, you can verify it with the usual command:
python3 --version
If the output correctly shows the Python version, there are no problems and Python is installed correctly on the system.



Author: Valerio De Marchis

Date: 22/07/2026