Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I add python to the windows PATH permanently?

share|improve this question

migrated from May 19 '10 at 22:01

This question came from our site for professional and enthusiast programmers.

up vote 19 down vote accepted
  1. Open System Properties (type it in the start menu, or use the keyboard shortcut Win+Pause)
  2. Switch to the Advanced tab
  3. Click Environment Variables
  4. Select PATH in the System variables section
  5. Click Edit
  6. Add python's path to the end of the list (the paths are separated by semicolons). For example:

share|improve this answer
I didn't know about Win + Pause and now I feel stupid. – vitorbal May 19 '10 at 22:00
@vitorbal: we all have these moments, for some these key short cuts are known for a long time, for the same folks other things are relatively new. no need to feel stupid, especially not in public – akira May 20 '10 at 6:27
What if you're running on a VM on a laptop which has neither a windows key nor a pause key? – alord1689 Nov 1 '12 at 4:11
@alord1689 Right-click "My Computer" on the desktop and choose "Properties" – Michael Mrozek Nov 1 '12 at 4:23
My keyboard (Lenovo W540) doesn't even have a pause key... or if it does, I can't find it. – ArtOfWarfare Aug 6 '15 at 18:45

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.

share|improve this answer

A simple google search would give you the answer for this... nevertheless, as seen on the python docs:

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).

share|improve this answer
+1 for saying "A simple Google Search" – Joe Taylor May 20 '10 at 11:02
I did a search for windows + path, and most of the websites were sites I weren't familiar with. I don't like going on unfamiliar websites while I'm on Windows. – Andrew Grimm Feb 7 '11 at 1:33

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .