Installing Python on a Windows machine is a relatively straightforward process. Here are the steps to follow:

Downloading

Click on the link below 👇 and download the latest version of Python. Be sure to choose the version that is compatible with your operating system.

https://www.python.org/

Download compatible versions

Python 3.9.0 : Download

Python 3.8.0 : Download

Python 3.7.0 : Download

Python 3.6.0 : Download

Python 3.5.0 : Download

Installation

  1. Once the download is complete, double-click the installer file to begin the installation process.
  2. Click Run when prompted by the User Account Control window.
  3. You must click on the "Add Python to Path" checkbox
Install Python in windows

Now

  1. Click on the Install Now option
  2. The installer will now begin installing Python on your machine. This may take a few minutes.
  3. Once the installation is complete, click Finish to exit the installer.

That's it! Python is now installed on your machine and ready to use.

Verify Installation

To verify the installation,

  1. Click on the Start menu, type cmd in the search bar, and press Enter.
  2. Open Command Prompt from there
  3. Type python and Press Enter
Python interpreter installed in windows

This should bring up the Python interpreter, which you can use to run Python commands and scripts.

If not working

After successful installation, if it not working you might not check the add path option

Note: If you want to be able to use Python from any directory on your machine, you will need to add the Python installation directory to your PATH environment variable.

Add Path

  1. Open the Start menu and search for "Environment Variables"
  2. Click "Edit the system environment variables"
  3. In the System Properties window, click the "Environment Variables" button
  4. Under "System Variables", scroll down and find the "Path" variable, then click "Edit"
  5. Go to your directory on C drive where python is installed
  6. Copy the address from Address Bar it will be like (C:\fodlernames\Python38-32)
  7. Click "New" and Paste the path to your Python installation
  8. Click "OK" to save the changes and close all windows
  9. Open a new command prompt and type python to ensure it's working.