PATH is an environment variable in Windows. It basically tells the commandline what folders to look in when attempting to find a file. If you didn't add Python to PATH then you would call it from the commandline like this:

C:/Python27/Python some_python_script.py

Whereas if you add it to PATH, you can do this:

python some_python_script.py

Which is shorter and neater. It works because the command line will look through all the PATH folders for python and find it in the folder that the Python installer has added there.

The reason it's unticked by default is partly because if you're installing multiple versions of Python, you probably want to be able to control which one your commandline will open by default, which is harder to do if both versions are being added to your PATH.

Answer from SuperBiasedMan on Stack Overflow
🌐
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 - You may have installed Python without adding it to PATH, not to worry, you can still add it. You don’t have to uninstall and reinstall it. Just follow these simple steps: Click on ‘This PC’ icon then select ‘Properties’ ... You will ...
Discussions

Do I need to setup the Path after installing Python
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. More on discuss.python.org
🌐 discuss.python.org
2
0
August 8, 2023
macos - Do I need to add every version of Python to PATH? - Stack Overflow
Regarding updating to newer versions of python: The path needs to be updated manually or reinstalled by setting the path while installing it. Regarding updating your shell: As long as the path modification is in a shell configuration file (e.g:.bashrc), it should persist across its updates. ... Sign up to request clarification or add ... More on stackoverflow.com
🌐 stackoverflow.com
Could we add Python to system PATH by default? - Ideas - Discussions on Python.org
When installing python for Windows, I see a checkbox that gives an option of adding it to the ‘PATH’ which I presume is adding it to system environment variables. Given that majority of users installing Python want it to be added to the PATH so that it can be called from the terminal and IDEs. More on discuss.python.org
🌐 discuss.python.org
3
January 27, 2020
What is PATH and should I use it with Python?
Hello everyone, this is the second part to a post actually, but don’t go away, I need help with what is being addressed in the title Background I am an amateur programmer, and was looking for some help on an issue (Link1) but unfortunately the kind man choosing to help me has quit replying, ... More on discuss.python.org
🌐 discuss.python.org
2
0
January 6, 2021
🌐
Real Python
realpython.com › add-python-to-path
How to Add Python to PATH – Real Python
July 23, 2026 - To refresh your current command-line ... be able to call python from the command line directly. The next time you log in, Python should automatically be added to PATH....
🌐
Great Learning
mygreatlearning.com › blog › it/software development › how to add python to path?
How To Add Python To Path?
November 15, 2024 - You can verify if Python has been ... and typing Python or Python-version. If Python is correctly added to the path, it should display the Python interpreter version without errors....
🌐
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.
🌐
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 - The error you’re getting is extremely common for beginners. It usually means Python was installed, but the system doesn’t know where to find it when you type python in the terminal. The fix? You need to add Python to PATH.
Find elsewhere
🌐
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!
Top answer
1 of 2
3

It is not required to add every version of python to the path environment. You do need to add the directory containing the Python executable to the path if you want to run python or its associated tools (e.g. pip).

Here are a few approaches:

  1. Add Python to path: There is an option to add python to the path during the installation. Make sure to check that.
  2. Manually add Python to PATH: You can do it manually if you installed python without adding it to path. On Windows, you can go to System Properties > Advanced > Environment Variables, and then add the path of the Python executable (e.g. C:\Python39) to the path variable. On Unix-based systems (Linux or macOS), you can modify your shell configuration file.
  3. Use a virtual environment: Instead of relying on system-wide Python installations, you can use virtual environments for your projects. This way, each project can have its own isolated Python environment. Use tools like virtualenv (for Python 2) or venv (for Python 3) to create and manage virtual environments. Activating a virtual environment automatically adjusts the path for the current shell session, so you don't need to worry about varying versions.

Regarding updating to newer versions of python: The path needs to be updated manually or reinstalled by setting the path while installing it.

Regarding updating your shell: As long as the path modification is in a shell configuration file (e.g:.bashrc), it should persist across its updates.

2 of 2
0

Here is the permanent solution:

  1. consider adding the scripts directory to your system's PATH permanently.
  2. Edit your system's environment variables
  3. Add the path to the scripts directory (/Users/bar/Library/Python/3.9/bin) to the PATH variable.
🌐
Mimo
mimo.org › tutorials › python › how-to-add-python-to-path
How to Add Python to PATH
You’ll add Python to your PATH so you can run python, python3, and python -m pip from any terminal window. ... Become a Python developer. Master Python from basics to advanced topics, including data structures, functions, classes, and error handling
🌐
Quora
quora.com › Why-is-Add-Python-to-PATH-important-and-what-happens-if-you-dont-do-it-while-installing-Python
Why is 'Add Python to PATH' important, and what happens if you don't do it while installing Python? - Quora
Answer (1 of 2): It adds to your system variables. When you open a CMD windows and type python, it will launch the interpreter for you. This is accessible from any location in your harddrive. If you don't do this, you will have to go your python installation folder, locate the root folder that ...
🌐
Python.org
discuss.python.org › ideas
Could we add Python to system PATH by default? - Ideas - Discussions on Python.org
January 27, 2020 - When installing python for Windows, ... environment variables. Given that majority of users installing Python want it to be added to the PATH so that it can be called from the terminal and IDEs....
🌐
Educative
educative.io › answers › how-to-add-python-to-path-variable-in-windows
How to add Python to PATH variable in Windows
First, we must find the directory where we installed Python. 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".
🌐
Python.org
discuss.python.org › python help
What is PATH and should I use it with Python? - Python Help - Discussions on Python.org
January 6, 2021 - Hello everyone, this is the second part to a post actually, but don’t go away, I need help with what is being addressed in the title Background I am an amateur programmer, and was looking for some help on an issue (Link1) but unfortunately the kind man choosing to help me has quit replying, and I haven’t been able to get any answers, so hopefully I can get python reinstalled and start working on the things he recommended, feel free to read the original post this stems from if you wish, but I d...
🌐
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
🌐
Geek University
geek-university.com › home › topic index › add python to the windows path
Add Python to the Windows PATH · Geek University
The official Python installer can configure PATH during installation through an option to add Python to environment variables. This is an alternative to manual editing. If Python is already installed, start the installer and choose its modify or repair workflow when available. Confirm which installation should be exposed on PATH before enabling the option, especially if multiple Python versions are installed.
🌐
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
🌐
Geek University
geek-university.com › home › python online course › add python to path on windows
Add Python to PATH on Windows · Geek University
The correct PATH entry is the folder containing python.exe, such as C:\Python34; do not add the executable filename itself. Installation locations vary according to the Python version, installer choices, Windows account, and whether Python was installed for one user or for all users.
🌐
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 running Python for the first time after the installation, the command sometimes returns an error or starts a Python version different from the one you installed. The solution is to add the correct Python binary to the PATH variable.
🌐
Scaler
scaler.com › home › topics › how to add python to path
How to Add Python to PATH - Scaler Topics
February 28, 2024 - If you're new to Python programming on Windows, one of the first things you should do is add Python to the system's PATH. This allows you to perform Python commands from any command prompt window, without having to navigate to the Python installation location.