Can't figure this out. I have followed the tutorials I have found to a T and it still won't run from cmd. I tried uploading a screenshot to show that C:\Python27 is in the Path env variable but I can't because I am a new user. Windows 7. See 'python' is not recognized as an internal...

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

C:\Users\paleus>set PATH
Path=C:\Program Files (x86)\MKS Toolkit\mksnt;C:\PROGRA~2\MKSTOO~1\bin64;C:\PROG
rShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem";C:\Program Files\Tortois
eSVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Python27\

  • What is the command you type, and what is the result you see? – Evert Oct 25 '12 at 16:04
  • 4
    did you restart the command prompt after changing PATH? Do echo %PATH% in the command prompt and make sure the changes took (copy the results here for us). Also what happens if you do C:\Python27\python? Do you get the interactive shell? – Doug T. Oct 25 '12 at 16:05
  • 1
    Is the python executable in c:\Python27? or in c:\Python27\bin? I don't have a windows install, so I'm only guessing. – pcalcao Oct 25 '12 at 16:06
  • 'python' is not recognized as an internal error comes only if the environment variable is not set properly or try restarting your cmd. – Ashwini Chaudhary Oct 25 '12 at 16:06
  • @pcalcao just checked my Windows install, python.exe is in C:\Python27 directly, not bin. – Doug T. Oct 25 '12 at 16:06

Looks like there is an unmatched double quote in your PATH variable for the following entry (fourth from the end):

C:\Program Files (x86)\QuickTime\QTSystem"
| improve this answer | |
  • It's not there in the system properties edit system variable box. C:\Program Files ...IBM\InformationServer\ASBNode\lib\cpp;C:\IBM\InformationServer\ASBNode\apps\proxy\cpp\vc60\MT_dll\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem";C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Python27\ – user1774774 Oct 25 '12 at 16:15
  • Ah, I see that there is 2. – user1774774 Oct 25 '12 at 16:18
  • @user1774774 The double quote appears in your comment as well. It is fairly common to see entries with spaces surrounded by double quotes, but this isn't actually necessary (although it doesn't hurt either). – Andrew Clark Oct 25 '12 at 16:18
  • That was it. Thanks everyone. Not sure how that got in there. – user1774774 Oct 25 '12 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy