How to install python in windows 10

In this tutorial, we are going to download and install Python on Windows 10 system. Please start by downloading Phyton from the official website – Python for Windows

Python for windows logo
Python for windows logo

For the time writing this article, the current version is Python 3.9.10. The installation file had been downloaded and we are ready to start.

Please note: I downloaded the Windows installer (64-bit) file.

How to install python in windows 10?

Install Python 3.9 Screen
Install Python 3.9 Screen

This is the first screen that we can see once we run the installation file. Please make sure that both of the options (in red) are selected. The first option will allow any user that uses this computer to use Python. The second option will add the Python path (folder) to the system PATH. This will give the option to run Python from the command line.

Python customize Installation
Python customize installation

For this guide, I have selected the customized Python installation option. Make sure all the options are marked and click the next button.

Python installation advanced options
Python installation advanced options

In the advanced options screen, mark the Install for all user options and the Precompile standard library. If you have Visual Studio version 2017 or above installed on your system. Mark also the Download debug binaries option. You can mark the Download debugging symbols if needed.

Press the Install button to start the installation.

Python UAC
Python UAC

If you get the above screen, press the Yes button. This is due to the Install for all users option that we mark on the previous screen.

Python installation progress
Python installation progress

And now the program installs Python on our system. Wait for the setup progress to finish.

Python installation finish successful
Python installation finishes successfully

The installation of Python on windows 10 finishes successfully. I do recommend to Disable path length limit, this will let programs the option to use more than 260 characters for folders.

Next step – verify Python can run:

The first thing to try is to open the command prompt, there are 2 main options to open the command line.

Python open the command line
Python open the command line

The first one is to use the Windows Key + R – type cmd and press enter.

The second option will also let at run the command line as an administrator.

Press the Windows key, the windows programs screen appear, you can start to type cmd, and see something like this:

Python open the command line as admin
Python open the command line as admin

If you right-click the Command Prompt you will have some options one of them is to run as administrator. I am using this option to start the command line as an administrator. If you run it as an administrator you may get a UAC screen asking if you want to allow this program to make changes to the system. Press the Yes button, and the command line will open.

Open command line as admin
Open a command line as admin

After pressing the Yes button, a command prompt will be open.

Python run in the command line
Python runs in the command line

When you see the commands prompt, type python and press enter. Note that due to fact that we mark the add Python to the path, we are able to just type Python and it manages to run it. This is what my system path looks like.

I open another command line and type path in it and press enter:

Current System Path
Current System Path

You can see from the screen that it contains the folder where Python is. And this gives the computer that places it searches for a command you type. If it will not find the command in one of the PATH it will show an error message.

Now we know that Python can be run from the command line.

Python in the start menu:

Python in start menu
Python in start menu

Press Windows Key or on what used to be the Start button in Windows to open the start menu. You will be able to see Python-related options there. Press the IDLE (Python..) to open the Python integration development and learning environment.

Python IDLE
Python IDLE

Python is ready to be used on your system. The next steps will be to actually write or run a Python script, but this is not in the scope of this guide. I will do another guide related to that, probably with integration to an IDE tool.

1 thought on “How to install python in windows 10”

Leave a Comment