Installing Python for all Operating Systems

Installing Python

  • Each installation of Python differs depending on what Operating System in installed on your PC / Laptop

For Windows Users:

1. Visit the official Python website at https://www.python.org/downloads/
  - Navigate to the Downloads section.

2. Scroll down to the "Python Releases for Windows" section
  - Click on the "Latest Python 3.x.y Release" link
  - Where x and y represent the specific version numbers

3. On the download page
  - Scroll down to the "Files" section
  - Choose Windows installer that corresponds to your system
  - Either 32-bit or 64-bit

4. Wait for the Installer to download
  - Double-click on it to start the installation process.

5. In the installer window
  - Select the checkbox option that says "Add Python x.x to PATH"
  - Where x.x represents the version number
  - Then click on the "Customize installation" button.

6. In the customization options, you can choose:
  - Installation location
  - Optional features
  - Other various settings 
  - You can also leave the defaults as they are

7. Click on the "Install" button to begin the installation process
  - This may take a few minutes.

8. After the installation is complete, you can close the installer window.
  - Open the Command Prompt or PowerShell and enter

python 
  
- You should see the Python version and a Python prompt.
- This confirms Python has been successfully installed. 

For Linux Users:

1. Open a terminal window
  - Using Ctrl+Alt+T (or use any other method to open the terminal) 
Check if Python is already installed by running the following command:

python3 --version

2. If Python is not installed, run the following command:
  - This updates the package lists for upgrades and new installations:

sudo apt update

3. Install Python by running the following command:

sudo apt install python3

- You may be prompted to confirm the installation by entering your password. 
 - Type "Y" or "yes" to proceed.

4. Once the installation is complete
  - Verify the installation by running the following command:

python3 --version

- You should see the Python version printed in the terminal
- This confirms Python has been successfully installed.