How to Install Python on Windows?

Got stuck while installing Python on Windows?

Don’t worry! You’re not the only one who has had this issue and is trying to figure out how to get out of this?

Are you looking for solutions?

We’ve got your back!

In This Article You Will Learn To Install Python on Windows.

Before proceeding to the next step, we must first confirm whether Python is already installed in the system or not. Also, ensure that Python PATH has been added correctly to Environment Variables.

Note: You can follow this article for Windows 8, 10, and 11 to install Python.

Table of Contents

Check if Python is installed in Windows

Open Command Prompt or Windows PowerShell to check the Python version by writing any of one command.

				
					python -V
				
			

If you see the Python version such as Python 3.10.2 like in the above case, Python is successfully installed, and PATH is correctly set to the system’s “Environment Variables.”

Now your system is ready to run the Python program.

Note: Python version might be different in your case as per the version of Python installed in your system.

But, if you get an error mentioned above in the image, it means – whether Python is not installed on Windows or Python is installed, but Python PATH is not set to the system’s “Environment Variables.”

For now, let’s assume Python is installed, but Python PATH is not set to the system’s “Environment Variables”; therefore, see how to set Python’s PATH to the system’s “Environment Variables.”

Check the Path of the Environment Variables

In Windows’s search section, type Advanced System Settings. Click on the “Environment Variables.”  

Now, click Path, next Edit.

Now, copy the location where Python is installed in the system, and paste the location in the Path field at the end after adding sign semi-colon ( ; ) before the Python location.

Location:

				
					C:\Users\dk\AppData\Local\Programs\Python\Python310

				
			

In this case, above is the location where Python is installed.

After adding semi-colon,

				
					;C:\Users\dk\AppData\Local\Programs\Python\Python310

				
			

Now, check-in Command Prompt whether Python PATH is added to the “Environment Variables” successfully or not.

Open Command Prompt and type the following command.

				
					python -V

				
			

Now, as it returned the Python version currently installed in the system, Python’s PATH is successfully added to “Environment Variables.”

Now, let’s assume that Python is not installed in the system.

How to Install Python on Windows

First of all, visit the official website of Python.

Click on the Downloads option.

Here is the most recent version. Simply click the Download Python 3.10.2. At the time you’re reviewing this article, Python might have been changed, in which the version will differ from the one you downloaded. Just Download the version it displays.

Note: Be aware that it will always show the most recent versions of Python at the top of the line.

After downloading the file, now install the file.

After getting the above installation prompt, first make sure to check the box “Add Python 3.10 to PATH” option that will add the Python’s PATH to “Environment Variables” next, click on the “Install Now” option. You will see next to the installation progress.

As you can see, Python installation is in progress.

Now, Python has been successfully installed on your system. Click on the “Close” option and close the prompt.

Check if Python is installed on Windows

Open Command Prompt or Windows PowerShell to check the Python version by writing any command.

				
					python -V

				
			

Now, as it returned the Python version currently installed in the system, Python’s PATH is successfully added to “Environment Variables.”

Do remember; we checked the box “Add Python 3.10 to PATH” option while installing Python that added Python to “Environment Variables,” therefore, we did not need to add PATH manually.

Finally, Python is installed successfully in the system.

If you find anything incorrect in the above-discussed topic and have further questions, please comment below.

Wrapping up!

Did you notice how simple it was to download and install Python for Windows? So I’m hoping you’ll not encounter any issue when installing Python onto Windows, and you can install it with a single click.

I hope you enjoyed this article and thought it was worth your time.

Happy Coding 🙂 

Leave a Comment

Stay in the loop

codingstreets