You know what has worked for me really well on windows.

My Computer > Properties > Advanced System Settings > Environment Variables >

Just add the path as C:\Python27 (or wherever you installed python)

OR

Then under system variables I create a new Variable called PythonPath. In this variable I have C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;C:\other-folders-on-the-path

This is the best way that has worked for me which I hadn't found in any of the docs offered.

EDIT: For those who are not able to get it, Please add

C:\Python27;

along with it. Else it will never work.

Answer from darren on Stack Overflow
🌐
Reddit
reddit.com › r/python › python and the path variable in windows 10
r/Python on Reddit: Python and the PATH variable in Windows 10
August 20, 2021 -

Do you remember checking the box in the image shown below to add your Python installation to PATH in Windows 10?

Adding Python to PATH

Well, I was curious! What if someone accidentally forgot to check that little radio button? What would be the possible recovery steps?

So I spent my evening yesterday uninstalling Python and re-installing to figure out a way to add Python to the PATH post-installation.

If you forget to add Python to the PATH variable, you won't be able to run Python in your command line.

You will get a message saying,

‘python' is not recognized as an internal or external command.

Here are the steps I used to add Python to the PATH variable in Windows 10.

  1. Copy the directory to which Python is being installed.

  2. Search for System Properties in the Search Bar.

  3. Click on the "Environment Variables" button in System Properties.

  4. Click on the "Path" variable and then click on "Edit".

  5. Now here's the deal. Paste the directory path from Step 1 at the top of the list. You can use the "Move up" button to get it to the top. Now click on "Ok".

I found out that if you paste the path at the end, it still doesn't work. Can someone tell me why?

Anyways, if the steps are not clear to anyone, here is a visual guide containing images of every step, on my blog for achieving the above objective. If you are interested, do take a look.

Discussions

Windows 10 Pro 1903 - Python, Path variables, and the Windows Store annoyance
Alright, so this is my first post and it is in regards to an annoyance and how Windows 10 Pro 1903 update is ignoring my Path variables. I have installed Python3 from the python.org site because I like having control over my applications and the Windows… More on learn.microsoft.com
🌐 learn.microsoft.com
2
1
May 27, 2019
Why doesnt Python add itself to PATH on Windows?
A lot of people have many different versions of Python installed. Perhaps the installer doesn't want to assume that the one you're currently installing should automatically be the default one (by adding it to the path) More on reddit.com
🌐 r/Python
60
115
August 21, 2023
Python and the PATH variable in Windows 10
If you type python and the store opens, Turn off the python alias in the Alias List in settings ( https://www.tenforums.com/tutorials/102096-manage-app-execution-aliases-windows-10-a.html ) More on reddit.com
🌐 r/Python
16
33
August 20, 2021
How to convert Windows path to WSL path?
WSL has a wslpath utility: $ wslpath wslpath: Invalid argument Usage: -a force result to absolute path format -u translate from a Windows path to a WSL path (default) -w translate from a WSL path to a Windows path -m translate from a WSL path to a Windows path, with '/' instead of '\' EX: wslpath 'c:\users' More on reddit.com
🌐 r/bashonubuntuonwindows
6
19
July 7, 2020
🌐
Liquid Web
liquidweb.com › home › help docs › server administration › windows server administration › adding python path to windows 10 or 11 path environment variable
Adding Python Path to Windows 10 or 11 PATH Environment Variable | Liquid Web
December 15, 2025 - Properly configure Python on your Windows machine by adding the Python path to the Windows 10 / 11 PATH environment variable, allowing your system to recognize and execute Python commands regardless of the current directory.Windows Operating System environment variable specifies the location of Python libraries, allowing Python to be readily accessible from any location within your system.
🌐
Python
docs.python.org › 3 › using › windows.html
4. Using Python on Windows — Python 3.15.2 documentation
This means that Python 3.15 supports Windows 10 and newer. If you require Windows 7 support, install Python 3.8. If you require Windows 8.1 support, install Python 3.12. Windows historically has limited path lengths to 260 characters.
🌐
YouTube
youtube.com › the code city
Add Python to Path Environment Variable - Windows 10 - YouTube
In this tutorial, we will show you the process of adding Python to the Path variable in Windows 11 or Windows 10. By adding Python to the Path variable, you ...
Published: May 24, 2023
Views: 30K
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-add-python-to-windows-path
How to add Python to Windows PATH? - GeeksforGeeks
July 12, 2025 - If no results appear then Python is not installed on your machine, download it before proceeding further. Click on open file location and you will be in a location where Python is installed, Copy the location path from the top by clicking over it.
Find elsewhere
🌐
Config Server Firewall
configserverfirewall.com › windows-10 › add-python-to-path-windows-10
How to add Python to PATH in Windows 10
June 25, 2020 - If you install python through the executable downloaded from the python website, then the path should be in your Windows 10 user directory under the AppData folder which is a hidden folder (C:\Users\username\AppData\Local\Programs\Python38).
🌐
UltaHost
ultahost.com › home › docs › other › general guides
How to add Python Path to Windows 10 PATH | Ultahost Knowledge Base
May 16, 2024 - The latest Python installer for Windows can set the System Environment Variable Path automatically if selected during the installation process. Simply select the “Add Python 3.5 to PATH” checkbox.
🌐
YouTube
youtube.com › watch
How to Add Python to Path in Windows 10/11 (Easy Method)
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
🌐
Data to Fish
datatofish.com › add-python-to-windows-path
How to Add Python to Windows PATH
That should open the Environment Variables window, where you can add/edit your paths. ... Click on New... if no Path variable is present, Otherwise select the Path variable and then click on Edit… instead. You should then see the New User Variable box. Type Path in the Variable name field. For the Variable value you will need to know the path to the Python that is installed on your computer.
🌐
Geek University
geek-university.com › home › topic index › add python to the windows path
Add Python to the Windows PATH · Geek University
PATH is an environment variable: a named configuration value inherited by processes such as terminals and applications. Its value is an ordered list of directories that Windows searches when you enter an executable command without its full path. For example, when you type python, Windows searches the directories in PATH for a matching executable, normally python.exe.
🌐
NBShare
nbshare.io › notebook › 462254290 › How-To-Add-Python-To-Windows-10-PATH
How To Add Python To Windows 10 PATH - Nbshare Notebooks
February 21, 2021 - You should see in the same directory a "Scripts" folder as shown in the snapshot below. For me the path is "C:\Users\aphull\AppData\Local\Programs\Python\Python39\Scripts" 2. Now add your "Scripts" folder path to the System environment Variables. 3. Open new "cmd" prompt window and type "pip --version".
🌐
AccuWeb Hosting
manage.accuwebhosting.com › portal home › knowledgebase › windows vps hosting › how to add python path to windows environment variables?
How to Add Python Path to Windows Environment Variables? - AccuWebHosting
March 28, 2025 - That happens with the help of the PATH variable. It is essential to ensure that Python is accessible from any location within your system. Achieving this requires adding the Windows 10 or 11 PATH environment variable, allowing your system to recognize and execute Python commands without caring for the current directory.
🌐
YouTube
youtube.com › artur spirin
How to add Python Path to Environment Variables in Windows 10 - YouTube
This video will show you how to set Windows 10 environment variables for Python. You can use this method to set Environment variables not just for Python but...
Published: January 14, 2016
Views: 397K
🌐
MakeUseOf
makeuseof.com › home › programming › how to add python to the windows path variable
How to Add Python to the Windows PATH variable
October 13, 2020 - The command might return an error that says "'python' is not recognized as an internal or external command, operable program or batch file," indicating that Python isn't added to your machine's PATH variable yet. To execute Python programs from your command line, follow the steps highlighted below. To add Python to your Windows PATH, you need to get its installation path.
🌐
YouTube
youtube.com › watch
How to Find Python Installation Path in Windows 10/11 (2023) - YouTube
In this video I'll show you how to find python installation path in windows 10 or windows 11. Python installation path by default is C:\Users\USERNAME\AppDat...
Published: November 20, 2023
🌐
Real Python
realpython.com › add-python-to-path
How to Add Python to PATH – Real Python
July 23, 2026 - Once you’ve located your Python executable, open the Start menu and search for the Edit the system environment variables entry, which opens up a System Properties window. In the Advanced tab, click on the button Environment Variables. There you’ll see User and System variables, which you’ll be able to edit: In the section entitled User Variables, double-click on the entry that says Path.
🌐
Educative
educative.io › answers › how-to-add-python-to-path-variable-in-windows
How to add Python to PATH variable in Windows
A typical installation would have the following path, C:\Users\MyUserName\AppData\Local\Programs\Python\Python310 · Now, we will need to add this to the PATH variable, we right click on "This PC" and go to "Properties". Then, we click on the "Advanced system settings" in the menu on the left.going · In the bottom right, we can see a button labeled "Environment Variables". We will click on it to open another window to edit these variables.