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.
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
Python 3.11.8
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
sudo apt install python3 python3-pip python3-venv
python3 --version
To install Python on Arch Linux a single terminal command is enough, which you can type directly:
sudo pacman -Syu python python-pip
python --version
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)"
brew install python
python3 --version