pythonwindowspythonpathsystem-variable

Python - Faster way to set python path on windows?


When you install python on windows, you have to set the path by going to the Environment Variables, then click New, enter the name, then in the value place enter the path, finally edit the path and add %pythonexe%; to it. When you do this, you can type python and you will get the python shell. Is there an easier way to do this without having to go to the system variables, and doing all that stuff?


Solution

  • According to this post all you have to do is type this in Command Prompt:

    setx path "%path%;C:\Python27;"