How do I add Python to the Windows PATH?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping
--
Chapters
00:00 How Do I Add Python To The Windows Path?
00:25 Accepted Answer Score 105
01:31 Answer 2 Score 16
01:48 Answer 3 Score 4
02:21 Answer 4 Score 1
02:57 Answer 5 Score 0
03:12 Thank you
--
Full question
https://superuser.com/questions/143119/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows #python #path
#avk47
ACCEPTED ANSWER
Score 105
For Windows 10/8/7:
- Open
System Properties
(Right clickComputer
in the start menu, or use the keyboard shortcut Win+Pause) - Click
Advanced system settings
in the sidebar. - Click
Environment Variables...
- Select
PATH
in theSystem variables
section - Click
Edit
Add Python's path to the end of the list (the paths are separated by semicolons). For example:
C:\Windows;C:\Windows\System32;C:\Python27
For Windows XP:
- Open
System Properties
(Type it in the start menu, or use the keyboard shortcut Win+Pause) - Switch to the
Advanced
tab - Click
Environment Variables...
- Select
PATH
in theSystem variables
section - Click
Edit
Add Python's path to the end of the list (the paths are separated by semicolons). For example:
C:\Windows;C:\Windows\System32;C:\Python27
Test on a new terminal window or if using an integrated terminal within a text editor, close and restart your editor or the changes won't be applied.
ANSWER 2
Score 16
For anyone trying to achieve this with Python 3.3+, the Windows installer now includes an option to add python.exe to the system search path. Read more in the docs.
ANSWER 3
Score 4
- Click on the windows button to start a search
- type in "system env" and click on the "edit system environment variables"
- Now click on the advanced tab on the top
- At the bottom click the button that says "environment variables"
- Now on the "user variables'your user name'" box at the top of the windows click on path then edit
- This should lead to another window where you want to click "new" and type in the commands: "C:\Python27" and "C:\Python27\scripts"
- Python should now work on command prompt
ANSWER 4
Score 1
As seen in the Python documentation:
Windows has a built-in dialog for changing environment variables (following guide applies to XP classical view): Right-click the icon for your machine (usually located on your Desktop and called “My Computer”) and choose Properties there. Then, open the Advanced tab and click the Environment Variables button.
In short, your path is:
My Computer ‣ Properties ‣ Advanced ‣ Environment Variables In this dialog, you can add or modify User and System variables. To change System variables, you need non-restricted access to your machine (i.e. Administrator rights).
ANSWER 5
Score 0
Right-click on My Computer, choose Properties. Then find the Environment Variables button (on Win7, it's under the Advanced tab; I forget where it is on other versions of Windows). Click that, and under System variables, edit the Path one.