Τhis guide is about installing Python 3 on UNIX and UNIX-like operating systems (Linux and macOS).
Python is a powerful and versatile programming language, and getting it set up on your Linux or macOS machine is essential for development. Here’s a straightforward guide:
Python comes preinstalled on almost every Linux Desktop distribution and is available as a package on all others.
To check if python3 is installed open your terminal and execute the following command.
python3 --version
If you see a version number (e.g., Python 3.12.2), you already have Python installed.
For more information click here.
Python 3 on macOS
macOS used to come with Python 2.7 preinstalled.
You are invited to install the most recent version of Python 3 from the Python website.
To check if python 3 is installed open your terminal and execute the following command:
python3 --version
If python 3 is installed correctly, it should return something like this… Python 3.12.2 For more information click here.