Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

C:\Users\paleus>python
'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
RA~2\MKSTOO~1\bin;C:\PROGRA~2\MKSTOO~1\bin\X11;C:\PROGRA~2\MKSTOO~1\mksnt;C:\IBM
\InformationServer\ASBNode\apps\jre\bin\classic;C:\IBM\InformationServer\ASBNode
\lib\cpp;C:\IBM\InformationServer\ASBNode\apps\proxy\cpp\vc60\MT_dll\bin;C:\Wind
ows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowe
rShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem";C:\Program Files\Tortois
eSVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Python27\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.sh;.ksh;.csh;.sed
;.awk;.pl

C:\Users\paleus>
share|improve this question

migrated from stackoverflow.com Oct 25 '12 at 19:07

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

    
I'm assuming your a windows user? –  Florin Stingaciu Oct 25 '12 at 16:04
    
What is the command you type, and what is the result you see? –  Evert Oct 25 '12 at 16:04
3  
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. –  undefined is not a function Oct 25 '12 at 16:06
show 6 more comments

1 Answer

up vote 3 down vote accepted

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"
                                         ^
share|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\p‌​roxy\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
add comment

Your Answer

 
discard

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