Introduction
As in the title of this article, the content will show about how to add an executable python path in Microsoft Windows. Precisely, in a local device which is running using Microsoft Windows 11. But apparently, it will work in any other version of the Microsoft Windows generally as an assumption. So, this is an attempt which is becoming an alternative for adding the executable python path. Sometimes, the process for adding the path in one of the step which is part of the installation process ends in a failure. In other words, it does not working as it may seems. Somehow, it also need a manual step to make it work.
How to Add Executable Python Path in Microsoft Windows 11
Actually, the step for adding executable python path in Microsoft Windows 11 is very easy. The process is very similar with the other process for adding various type of path for other executable files. The following is the step in order to achieve it :
-
First of all, just search for the environment variables. In the image below, there is a process for searching it throughout the default search feature in Microsoft Windows 11 :
How to Add Executable Python Path in Microsoft Windows 11 Just click the link of ‘edit the system environment variables’ exist in the image above. Apparently, it will display the actual system window with the tab of Advanced tab as an active tab as in the following image :
How to Add Executable Python Path in Microsoft Windows 11 -
Next, continuing on the above step, click the Environment Variables button. There will be a window displaying the list of available environment variables appearing as follows :
How to Add Executable Python Path in Microsoft Windows 11 -
Following after, just select the Path variables exist in the System variables as follows :
How to Add Executable Python Path in Microsoft Windows 11 After that, just click the ‘Edit…’ button in order to add the executable python path. Suddenly, there will be an additional new window as follows :
How to Add Executable Python Path in Microsoft Windows 11 In order to add a new executable python path, just click the New button. After clicking the button, there will appear a window with the label of ‘Edit environment variable’ as follows :
How to Add Executable Python Path in Microsoft Windows 11 In the new line appear above, just type the executable python path file as follows :
How to Add Executable Python Path in Microsoft Windows 11 Click the OK button to end the process to add a new environment variable. It will close the window of ‘Edit environment variable back to the main window of Environment Variable. Then, click the OK button once more to close the window of Environment Variable. As the window of Environment Variable is finally closed, the process for adding executable python path is finished.
How to Test the Executable Python Path in Microsoft Windows 11
In this part, soon after the process for adding an executable python path is done, just test it. In order to test it, the following is the steps to do that :
-
First of all, just run a Command Prompt and then type the following command to check whether the environment variable with the name of ‘Path’ >
Microsoft Windows [Version 10.0.22000.675] (c) Microsoft Corporation. All rights reserved. C:\Users\Personal>echo %Path% C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\Users\Personal\AppData\Local\Programs\Python\Python310\;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NetBeans-13\netbeans\java\maven\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files\PostgreSQL\14\bin;C:\Program Files\Inkscape\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\nodejs\;C:\Users\Personal\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\Personal\AppData\Local\Programs\Python\Python310\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\Personal\AppData\Local\Microsoft\WindowsApps;;C:\Users\Personal\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Personal\AppData\Roaming\npm C:\Users\Personal>
-
Next, another way to check the executable python path is to verify the version of it. Just type the following command to do it :
C:\Users\Personal>python -V Python 3.10.5 C:\Users\Personal>
2 thoughts on “How to Add Executable Python Path in Microsoft Windows 11”