Install Python on Windows, Linux and Mac OS

Step 1:

Download the Python Installer:

The first step is to download the latest version of Python from the official Python website (https://www.python.org/downloads/windows/). The website will automatically detect your operating system and offer the appropriate installer for your system (32-bit or 64-bit).

Step 2:

Run the Installer Once the installer has been downloadeddouble-click on it to run the installation process. You may be prompted by the User Account Control (UAC) to allow the installation. Click Yes to proceed.

Step 3:

During the installation process, you'll have the option to customize the installation. It's highly recommended to check the box next to "Add Python to PATH" before proceeding. This will ensure that Python is added to your system's PATH variable, making it easier to run Python from the command prompt.

Step 4: Install Python After selecting your desired installation settings, click Install to begin the installation process. This may take a few minutes.

Step 5: Verify the Installation Once the installation is complete, you can verify that Python has been installed correctly by opening the Command Prompt (search for "cmd" in the Start menu) and typing the following command:

python --version

Press Enter, and you should see the version of Python you installed displayed in the output.

Alternate Installation Method: Microsoft Store If you prefer, you can also install Python on Windows using the Microsoft Store. Search for "Python" in the Microsoft Store, find the latest version of Python 3.11, and click Install.

ubuntu/Debian

sudo apt-get install python3