Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Just downloaded and installed Python27 (C:\Python27). And when I run python in cmd. I get :

'python' is not recognized as an internal or external command, operable program batch file..

I looked at other posts. And apparently I need to add python to the environment variable PATH. How does one do this in Windows 7?

share|improve this question

migrated from Jun 25 '12 at 3:30

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

before posting a question, please search on google. – pylover Jun 23 '12 at 2:56
up vote 1 down vote accepted

As you said, you need to add c:\python27 to the list of directories assigned to the PATH environment variable.

This link - How to set the path in Windows 7 will tell you how to set your path in Windows 7.

This shows you how to do this with Java as an example, but you can adjust it to Python

A summary from the web:

Set the system’s PATH variable:

  • Right-click Computer and select Properties.
  • In the dialog box, select Advanced System Settings.
  • In the next dialog, select Environment Variables.
  • In the User Variables section, edit the PATH
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.