Introduction
This article will focus on how to install python program or binary execution file in Microsoft Windows. In the term of python program or binary execution file in this context is to execute python files. In other words, it is a program or binary execution file useful for developing application using python programming language.
How to Install Python in Microsoft Windows
So, how to install python in Microsoft Windows or a device running using Microsoft Windows as its operating system ?. Just follow the sequence below :
-
First of all, access the main official website of python. It exist in this link. Furthermore, for the download link it exist in this link . That is the link containing Python installer for Windows operating system.
-
Next, following the first step, just download the installer.
-
After that, just run the installer. In this context, there is a default directory for storing the installation result. Choose any place freely. But this article will choose ‘C:\Python38’ as an example. It exist in the following output :
C:\Python38>dir Volume in drive C is Windows Volume Serial Number is E003-3593 Directory of C:\Python38 05/07/2021 10:15 AM <DIR> . 05/07/2021 10:15 AM <DIR> .. 04/02/2020 11:20 AM <DIR> DLLs 04/02/2020 11:20 AM <DIR> Doc 05/07/2021 10:15 AM <DIR> etc 04/02/2020 11:19 AM <DIR> include 04/02/2020 11:20 AM <DIR> Lib 04/02/2020 11:20 AM <DIR> libs 02/25/2020 11:31 PM 31,328 LICENSE.txt 02/25/2020 11:32 PM 890,948 NEWS.txt 02/25/2020 11:30 PM 99,912 python.exe 02/25/2020 11:30 PM 58,952 python3.dll 02/25/2020 11:30 PM 4,195,912 python38.dll 02/25/2020 11:30 PM 98,376 pythonw.exe 05/07/2021 10:13 AM <DIR> Scripts 06/15/2020 06:32 PM <DIR> share 04/02/2020 11:20 AM <DIR> tcl 04/02/2020 11:20 AM <DIR> Tools 02/25/2020 11:31 PM 89,752 vcruntime140.dll 7 File(s) 5,465,180 bytes 12 Dir(s) 1,662,193,664 bytes free C:\Python38>
That is all for the installation step. In the next part below, the focus will be on configuring the python program or binary file. The configuration will allow the execution of python program or binary file in any path.
How to Configure Python in Microsoft Windows
-
Actually, there is a way for the python program or binary file in this context ‘python.exe’ is available in every path for further execution. Just add it to the environment variable of the operating system. Type ‘environment variables’ to search and then run it. There will be a menu or link appear by the label of ‘Edit the System Environment Variables. Choose or select that link and then click it. The following window dialog will appear :
-
Following after, just click in the Environment Variables… button above, there will be a window dialog will appear below :
-
Basically, there are a few steps for the above window dialog to appear. The environment variable will consists of User Variable and System Variable. Just choose the environment variable with the name of ‘Path’. After selecting that line, just click the Edit button on the System Variable. Then, the above window dialog will appear.
-
For storing the path of the python program or binary file, just click the New button above. That window dialog will change into the following display :
-
Just type the path where the python program or binary file exists. In this context, it is exist in ‘C:\Python38’. Last but not least, just click the OK button.
-
Finally, run the Command Prompt add type the following command to check if the python program or binary file execution is possible. Those commands exist as follows :
C:\Python38>python --version Python 3.8.2 C:\Python38>python -V Python 3.8.2 C:\Python38>cd \ C:\>python --version Python 3.8.2 C:\>python -V Python 3.8.2 C:\>
2 thoughts on “How to Install Python in Microsoft Windows”