Skip to content

How to Install Python on Windows 10: Easy, Step-by-Step Guide

How to Install Python on windows 10

In this step-by-step guide, you’ll learn how to download and Install Python on Windows 10 in Just few Easy Steps.

Here are the 6 easy steps that you may follow:

1. Open a web browser in your computer.

2. Type “Python download” at the search bar and hit the enter button.

3. Click on the very first result (i.e., Download Python | Python.org) shown by Google.

4. Click on the Download Python 3.9.4 button (Python 3.9.4 is the latest version of python), and download the python executable installer.

5. Run the executable installer.

6. Verify if python and pip is installed on your windows machine or not.

So, Let’s get started!

1. Open a web browser in your computer.

Here, I’m using Google chrome (you might also use other web browser such as: Internet explorer, Mozilla Firefox, Safari, Opera, etc…)

Of course! You can use any one of the web browser mentioned above, it does not matter which web browser you are using because the main aim of us is to download and install python on our windows machine.

Install Python on windows 10

So, Just click on your google chrome browser icon.

2. Type python download at the search bar.

Just after opening the chrome browser, type “python download” at the search bar and hit the enter button of your keyboard.

Install Python on windows 10

3. Click on the very first result shown by Google.

After hitting the enter button (which I mentioned in the previous step), you’ll see that a new window (a new page) will open, and in that page approximately 10 results are there.

But,

Forget about all the results except the very first one.

Now, what you have to do is? You just have to click on the very first result shown in that page.

Install Python on windows 10

As soon as you click on the very first result, you’ll directly reach to the python official website (i.e., python.org/download).

4. Click on the download python 3.9.4 (the latest version) button.

Now, click on the Download Python 3.9.4 button (which is just below the line- Download the latest version for windows).

You might be wondering that , why 3.9.4 ?

Why not other version?

It’s just because, at the time of writing this article python 3.9.4 is the latest version of python.

And, as you already know that the latest version provides new features or maybe some old features which are deprecated will be removed.

So, it is better to install the latest version of python, which is 3.9.4 in this case.

Install Python on windows 10

After clicking on the Download Python 3.9.4 button, you’ll see that in the left bottom corner of your computer screen “python 3.9.4.exe” file will start downloading.

Install Python on windows 10

It will take some time to download. so, wait for it till it will be downloaded.

5. Run the executable installer.

Once you finished with the download, click on the downloaded file (i.e., python-3.9.4.exe) to run the executable installer.

Install python on windows 10

After clicking on the downloaded file, you’ll reach to a new setup window which shows the following two dialog options:

5.1. Install Now

5.2. Customize installation

Install Python on windows 10

And, To run the executable installer, you just have to click on either of the two options.

5.1. If you select “Install Now”:

This option installs python in your user directory (directory are also called folder. It is an area in a computer’s memory where collection of files or programs are stored in a hierarchical system, directories can also contain subdirectories)

If you select “Install Now” option, then the install directory will be added to the your path.

This option does not gives you to do any customization to the installation process, which means that it does not gives any optional features and advanced options to download and install.

It will automatically install standard library, IDLE, pip, test suite and launcher to the user directory.

So,

If you want to install python on your windows 10 machine without any customization or without changing the installation location then select this (i.e., “Install Now“) option.

But,

First, make sure that you check to the checkbox to “Add python 3.9 to PATH”. With this option enabled, python will be added to the environmental variables,

And, you can run python command anywhere from your computer and so that it can be called from the terminal and IDEs.

So, first check the “Add python 3.9 to PATH” checkbox, and then click on the “Install Now” option.

Install python on windows 10

Just after clicking on the “Install Now” option, the setup progress will be shown in a python 3.9.4 (64-bit) setup window.

Install python on windows 10

It will take some time to install. so, wait for it till it will be installed.

After successful completion of installation, the following popup window will be shown with “Setup was successful” message.

Install python on windows 10

The above popup window also gives you the option to “Disable path length limit”.

Clicking the “Disable path length limit” option removes the limitation on the MAX_PATH (i.e., the maximum length for a path or maximum length of a file name).

Disabling the path length limit does not have any negative effect while running your code. It allow python to use long file_names or long path_length_of_file, and also help in debugging to avoid such issues.

Why you should click on the “Disable path length limit” option?

Ans: Usually, Initial versions of windows OS allows file_name of a program or path_length_of_file up to 260 characters (which is it’s “MAX_PATH” limitation). Means that, you can’t use a file_name longer than 260 characters.

And, If a person uses a file_name or path_length-of_file longer than the “MAX_PATH” limitation then during compilation of the python program a very common error raised due to the longer file name.

So, To overcome such issues you should disable the path length limit.

Install python on windows 10

After clicking on the “Disable path length limit”, the following popup window will shown with “Do you want to allow this pc to make changes to your device?” message.

Here, just click on the Yes option.

Install python on windows 10

And at last, click on the “close” button which will shown just after clicking on the Yes option.

Install Python on windows 10

So, the installation process is pretty straightforward.

5.2. If you select “Customize installation”:

This option allow you to select the optional features and advanced options to download and install.

It allow you to change the installation location of python.

Python will be installed into the program files directory.

The install directory will be added to the system PATH.

But,

Before selecting the “Customize installation” option. First, make sure that you check to the checkbox to “Add python 3.9 to PATH”.

Install python on windows 10

After that, when you click on the “Customize installation” option, the following popup window will be shown with “optional features” message.

Install python on windows 10

Leave everything as default and click on the “next” button.

After clicking on the next button, the following popup window will be shown with Advanced options message.

Install python on windows 10

And, here you can change the installation location of your python 3.9.4, along with that you can also install some advanced options such as: Install for all users, precompile standard library and download debugging symbols etc…

So, If you want to customize the installation location of python 3.9.4 then, just click on the “browse” button first.

Install python on windows 10

Now, click on “This PC” option.

Install Python on windows 10

After that, scroll down the scroll bar and click on “Local Disk (C:)”.

Install Python on windows 10

And, at last click on “OK” button.

Install Python on windows 10

Now, you’ve to create a python directory so, just write python after C:\ and give a backslash after writing python and again write python and the version which you have installed.

Just like this; C:\Python\Python394

Install python on windows 10

But, the choice is yours, you can name this folder anything. I just prefer like this because it is short, easy to remember and also it gives an idea that which version of python is installed in which folder.

So once you do that, you can also check these options: Precompile standard library, Download debugging symbols and Download debug binaries.

But, first of all check the “Install for all users” which will automatically check the option which says “Precompile standard library”.

And, then just click on “Install” button.

Install python on windows 10

After clicking on the “Install” button, the following popup window will be shown with “Do you want to allow this pc to make changes to your device?” message.

Here, just click on the Yes option.

Install python on windows 10

As soon as you click on the “yes” option, the setup progress will be shown in a python 3.9.4 (64-bit) setup window.

Install python on windows 10

It will take some time to install. so, wait for it till it will be installed.

After successful completion of installation, the following popup window will be shown with “Setup was successful” message.

Install python on windows 10

And, from here all the remaining steps are similar that we have already done when we had selected the “Install Now” option.

Now, you are ready to write Python codes in your windows 10 machine.

6. Verify if python is installed on your windows machine or not.

So, can you now write python’s code on your computer?

According to me- Yes! , you can.

Because, you have successfully installed python 3.9.4 on your windows 10 machine.

It’s OK, It’s OK!…

But, how can you verify that it is actually installed or not in your machine?

You can verify it through three different ways:

1. By using your Python 3.9 (64-bit) application

2. Using command prompt application

3. And, by using IDLE (Integrated development and learning environment) application

So, Let’s have a quick look on all those three different ways:

1. By using your Python 3.9 (64-bit) application

Click on start menu and type “Python” at the search box, it will automatically suggests many options, and one of them will be Python 3.9 (64-bit).

? Tip: You can directly search for the “Python” by clicking on the search box. There is no need to click on the start menu.

Select the “Python 3.9 (64-bit)

Install python on windows 10

If Python was installed successfully, you should see the following page. The last line (i.e., >>>) of the page is known as prompt, which simply means that now you are ready to write your python code.

Install python on windows 10

2. By Using command prompt application

Click on start menu and type “command prompt” or “cmd” (which is just the short form of command line) at the search box.

Select the command prompt application.

If Python was installed successfully, you should see the following page. The last line of the page shows this line- c:\users\yourname> and after that a blinking white cursor.

Install python on windows 10

Type “python” just from the starting of the white blinking cursor, you should see the following page. Which shows that, now you are ready to write your python code.

Install python on windows 10

And, If you want to check whether pip is installed or not then, type “pip –version” just from the starting of the white blinking cursor, you should see the following page. Which shows the installed location and the version of your pip.

Install python on windows 10

3. By using IDLE (Integrated development and learning environment) application

Click on start menu and type “IDLE” at the search box.

Select IDLE (Python 3.9 64-bit).

If Python was installed successfully, you should see the following page.

Install python on windows 10

Conclusion:

Hurray! ?

You have successfully installed the latest version of python on your windows 10.

And, now you can start your python journey.

So, In this article you’ve learned how to:

Install the latest version of python on windows 10 machine.

Verify whether python and pip is installed or not.

So, That’s all from my side.

Now I’d like to hear from you:

Is this post helpful for you?

Let me know by leaving a quick comment below.


Share this Post

Leave a Reply

Your email address will not be published. Required fields are marked *