1. Hold Win and press Pause.
  2. Click Advanced System Settings.
  3. Click Environment Variables.
  4. Append ;C:\python27 to the Path variable.
  5. Restart Command Prompt.
Answer from melhosseiny on Stack Overflow
🌐
Mimo
mimo.org › tutorials › python › how-to-add-python-to-path
How to Add Python to PATH
If you installed from python.org, rerun the installer and select: ... Open Start, search for Environment Variables, then open Edit the system environment variables. ... Under User variables (recommended), select Path → Edit.
🌐
Real Python
realpython.com › add-python-to-path
How to Add Python to PATH – Real Python
July 23, 2026 - The quick fix for this is just adding your new Python directory before the old Python directory, though you’d probably want to clean your system of the bad Python installation too.
🌐
Cloudinary
cloudinary.com › home › how to add python to path – and why it matters
How to Add Python to PATH – and Why It Matters
August 1, 2025 - Click New and paste each path. Apply and restart terminal. Open a new command prompt and type python --version. If everything worked, you’ll see the installed Python version. ... On most Unix-based systems, Python is already installed, but it may be under python3. To check, try the terminal command which python3. To make python run Python 3, add an alias in your shell config:
🌐
Great Learning
mygreatlearning.com › blog › it/software development › how to add python to path?
How To Add Python To Path?
November 15, 2024 - Enter your password. This will open up a list of directories that are stored in the Path variable. Now, after the last directory location, enter the path to the Python Install directory.
🌐
Reddit
reddit.com › r/pythontips › what if you forget to add python to path?
r/pythontips on Reddit: What if you forget to add Python to PATH?
August 20, 2021 -

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

You will get a message saying,

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

This is because Windows is trying to search for Python in its PATH variable and is unable to find it.

Here is a step-by-step instruction 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. Pay Attention! 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".

Now you can open up your command line and run python. The Python interactive shell will open up.

*Here is a little extra tip! *

Add the Scripts folder to the PATH variable too. This is the folder where all your libraries will be installed.

If the instructions are not clear enough for you, you can also check out the visual guide containing images of every step, on my blog for achieving the above objective.

Good luck and let me know!

🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to add python to path on windows, linux, and mac
How to Add Python to PATH on Windows, Linux, and Mac
December 12, 2025 - When a user types a terminal command ... any of the directories, the system executes it. Use Windows System Properties to add Python's installation directory to the PATH variable....
Find elsewhere
🌐
Python Guides
pythonguides.com › add-python-to-path
How to Add Python to PATH
February 2, 2026 - Click New and paste your Python installation path there. Click New again and add the Scripts folder (it’s inside your Python folder). I recommend moving these two entries to the top of the list, so your system finds them first.
🌐
Python.org
discuss.python.org › python help
Do I need to setup the Path after installing Python - Python Help - Discussions on Python.org
August 8, 2023 - Hi I downloaded and installed Python from python…org. I then tried to write simple script and saved it in a file called first.py (I followed the instruction here https://www.tutorialsteacher.com/python/python-interective-shell). I saved the first.py in a folder called Python.
🌐
Data to Fish
datatofish.com › add-python-to-windows-path
How to Add Python to Windows PATH
You can easily add Python to Windows PATH by downloading a recent version of Python and then checking the Add python.exe to PATH box at the bottom of the setup screen: Finish the installation, and you are good to go!
🌐
CodeGenes
codegenes.net › blog › how-to-add-python-to-path
How to Add Python to Path: A Comprehensive Guide — codegenes.net
Click on "Edit the system environment variables". In the System Properties window, click on the "Environment Variables" button. Under "System variables", find the "Path" variable and click "Edit".
🌐
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 - Variable Name: Python Variable Value: C:UsersAdministratorAppDataLocalProgramsPythonPython313 · Locate the Path entry in the System Variable section, highlight it, and then click the Edit button.
🌐
TechBloat
techbloat.com › home › how to add python to path after installation
How to Add Python to Path After Installation - TechBloat
January 23, 2026 - If your command line does not recognize Python or does not display the version, it indicates that Python is not currently in your system’s PATH. In that case, you’ll need to add Python manually to ensure you can run Python commands from anywhere in your terminal or command prompt. After installing Python on Windows, it’s essential to add it to your system’s PATH environment variable.
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-add-python-to-windows-path
How to add Python to Windows PATH? - GeeksforGeeks
July 12, 2025 - 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. Now, we have to add the above-copied path as a variable so that windows can recognize.
🌐
GUVI
guvi.in › blog › python › step-by-step guide to add python to path in 2026
Step-by-Step Guide to Add Python to Path in 2026
1 month ago - Without Python in PATH, you’ll see errors like “python is not recognized” (Windows) or “command not found” (macOS/Linux). It’s a one-time setup step, done either during installation or manually afterward.
🌐
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 - Next, select the Path variable and click on Edit. Type a semi-colon after your Python executable path and paste the Scripts path you just copied after it. Then click Ok. You can add Python to the System Variables PATH as well.
🌐
Scaler
scaler.com › home › topics › how to add python to path
How to Add Python to PATH - Scaler Topics
February 28, 2024 - Adding Python to your system's PATH is a simple operation that allows you to execute Python commands from wherever in your command prompt or terminal. To accomplish this, navigate to your Python installation directory, copy the path, and add it to the system's PATH environment variable.
🌐
Medium
medium.com › @omoshalewa › why-you-should-add-python-to-path-and-how-58693c17c443
Why You Should Add Python to PATH and How | by Shalewa Oseni | Medium
June 13, 2020 - After installing Python and running it, you should see a pop up like the one below. Note that I will be using Windows 10. ... If you are new to Python go ahead and tick “add Python 3.7 to PATH.” It could be “Python 3.8” or the latest version.