Site icon Thetechhacker

How to Add Python Path to Windows 10

Add Python Path to Windows 10

Python doesn’t need any introduction. Being one of the most used programming languages in the world, Python is working on almost all of our devices in one way or another. When you want to start programming in Python, it is necessary to make sure that it is currently installed and ready to run Python scripts. In order to do that, you should install Python. But sometimes, it will not be enough on Windows 10. Especially if you manually installed the program and accidentally forgot to add the Python path.

In this article, we are going to look at the steps required to manually add Python to your Windows PATH configuration. This will allow Python to run scripts on your OS without any complications. Without any further explanations, let’s directly dive into it.

The Easy Way

If you want an easier alternative without having to manually add the path yourself. You can simply reinstall Python using the latest packages. During the installation, it will provide you a checkbox asking “Add Python 3.7 to PATH” (The version number will change based on the version you are installing). Simply checking the box will automate the process. If you do not want to reinstall Python, follow the manual method given below.

To Add Python to the Windows PATH

Before getting started, you need to collect two paths.

Keep in mind that the <your-username> and Python37-32 will be different based on your username and the version of Python you installed.

Once you have these two paths, we can continue to the remaining steps.

  1. Right-click on This PC icon on your desktop.
  2. Choose Properties.
  3. On the left sidebar, click on Advanced System Settings. It will open the System Properties window.
  4. At the bottom of the window, click on the Environment Variables… button. It will open the screen where you can add a new PATH.
  5. Click on the New button. This is where you have to add the paths we have collected.
  6. In the Variable name box, just type Path.
  7. In the Variable value box, you have to input both the paths we have collected separated by a semicolon. Which would look something like this.
    C:\Users\<your-username>\AppData\Local\Programs\Python\Python37-32;C:\Users\<your-username>\AppData\Local\Programs\Python\Python37-32/Scripts
  8. Click on OK. You will see the new path added to the section.
  9. Press OK once again to close the screen.

If you want an easier alternative without having to manually add the path yourself. Feel free to contact specialists from do my python homework services for assistance. They help programming students and newbies master Python’s tiny tricks and understand the pitfalls. There’s also another option. You can simply reinstall Python using the latest packages. During the installation, it will provide you a checkbox asking “Add Python 3.7 to PATH” (The version number will change based on the version you are installing). Simply checking the box will automate the process. If you do not want to reinstall Python, follow the manual method given below.

You have successfully added the Python location to your Windows PATH. Now, you will be able to run scripts and commands right from the CMD and successfully run the Python applications.

Exit mobile version