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
Under User variables (recommended), select Path โ†’ Edit. Click New and add the folder that contains python.exe. ... What to look for: in where python, the first result is what runs when you type python.
๐ŸŒ
Real Python
realpython.com โ€บ add-python-to-path
How to Add Python to PATH โ€“ Real Python
July 23, 2026 - Once youโ€™ve found the executable, make sure it works by double-clicking it and verifying that it starts up a Python REPL in a new window. If youโ€™re struggling to find the right executable, you can use Windows Explorerโ€™s search feature. The issue with the built-in search is that itโ€™s painfully slow. To perform a super-fast full system search for any file, a great alternative is Everything: Those paths highlighted in yellow, namely those at \WindowsApps and \Python310, would be ideal candidates to add to PATH because they look like executables at the root level of an installation.
Discussions

Adding Python to PATH on Windows - Stack Overflow
I've been trying to add the Python path to the command line on Windows, yet no matter the method I try, nothing seems to work. I've used the set command, I've tried adding it through the Edit Envir... More on stackoverflow.com
๐ŸŒ stackoverflow.com
What if you forget to add Python to PATH?
Try typing "py" which is the python launcher. It lives in C:\windows\ so is on the path. It allows you to choose which version of Python to launch if you have more than one. Use "py -h" to see the options. More on reddit.com
๐ŸŒ r/pythontips
3
31
August 20, 2021
How do I "set Python to PATH" without reinstalling Python?
Wesley Trayer is having issues with: I am currently at Timezones in the learn python track, and I wanted to install pytz on my computer. I read that all you needed to type was "pip ... More on teamtreehouse.com
๐ŸŒ teamtreehouse.com
1
October 1, 2017
what does it mean to " Add python<version> to PATH " ?
The PATH environment variable holds a list of folders to search through when you attempt to run a program from the terminal. You want to tick that box during installation More on reddit.com
๐ŸŒ r/CodingHelp
3
3
December 29, 2021
๐ŸŒ
Great Learning
mygreatlearning.com โ€บ blog โ€บ it/software development โ€บ how to add python to path?
How To Add Python To Path?
November 15, 2024 - For example, if Python is installed in C:PythonXX, you can add C:PythonXX to the Path variable. Then, you can simply type Python in the Command Prompt from any directory, and it will work without errors. When Python is added to the PATH, it becomes a globally accessible command, regardless of your current working directory.
๐ŸŒ
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.
๐ŸŒ
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.
Find elsewhere
๐ŸŒ
YouTube
youtube.com โ€บ chart explorers
ADD PYTHON TO PATH | When and how to add python to path - YouTube
A brief depiction of how to add python to path. Also, an explanation of when you might not want to add python to path. Python is a general purpose programmin...
Published: June 24, 2020
Views: 8K
๐ŸŒ
YouTube
youtube.com โ€บ watch
Adding Python to PATH: Understanding What PATH Is & Adding Python to PATH on Windows - YouTube
Download your free Python Cheat Sheet here: https://realpython.com/cheatsheetFree Python Skill Test with instant level + learning plan: https://realpython.co
Published: April 2, 2026
๐ŸŒ
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 without specifying a command path, the system searches the PATH directories for the corresponding binary. If the binary is in any of the directories, the system executes it. Use Windows System Properties to add Python's installation directory to the PATH variable.
๐ŸŒ
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!

๐ŸŒ
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
๐ŸŒ
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 - Type in the following and press Enter. ... In the System Properties window, go to the Advanced tab, clicking the Environment Variables button. Create a user variable by clicking the New button under the User Variables for Administrators section.
๐ŸŒ
YouTube
youtube.com โ€บ watch
How To Add Python to PATH in Windows - YouTube
The tutorial explains how to add Python to the Windows PATH in two different ways, allowing users to run Python scripts and access Python packages directly f...
Published: September 28, 2024
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to Add Python to PATH on Windows (Step-by-Step Guide) - YouTube
Learn how to manually add Python to the PATH on Windows. This lets you run Python and pip from the command prompt. Step-by-step instructions show how to loca...
Published: March 18, 2026
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ library โ€บ os.path.html
os.path โ€” Common pathname manipulations
To read or write files see open(), and for accessing the filesystem see the os module. The path parameters can be passed as strings, or bytes, or any object implementing the os.PathLike protocol. Unlike a Unix shell, Python does not do any automatic path expansions.
๐ŸŒ
Upgrad
upgrad.com โ€บ home โ€บ blog โ€บ data science โ€บ python path: what it is and how to set it up correctly
Python Path: What It Is and How to Set It Up Correctly
July 24, 2026 - The first is the system PATH environment variable. This is a setting in your operating system that tells your computer where to look for programs when you type a command. When you install Python and add it to PATH, your system knows where to find python.exe or python3 no matter which folder you are working in.
๐ŸŒ
Real Python
realpython.com โ€บ courses โ€บ adding-python-to-path
Adding Python to PATH โ€“ Real Python
March 31, 2026 - Learn how to add Python to your PATH environment variable on Windows, macOS, and Linux so you can run Python from the command line.