It is currently Thu Apr 26, 2018 7:14 pm Advanced search

python is not recognized as an internal or external command

Topics about starter packages, visualizer or any other third party tools.
Please submit new language requests in the Language Request Forum.

python is not recognized as an internal or external command

Postby J.S.F. » Sun Dec 04, 2011 8:07 pm

I've installed python on my computer and when I try to run "play_one_game.cmd" from the command line I get 'python is not recognized as an internal or external command, operable program or batch file'

I'm using the windows command line(cmd.exe). I've opened the python shell but I couldn't even figure out how to navigate though the directory tree with it.
J.S.F.
Lieutenant
 
Posts: 16
Joined: Sun Dec 04, 2011 7:50 pm

Re: Noob needs help

Postby Scryer » Sun Dec 04, 2011 9:32 pm

Sounds like you need to get the directory where python.exe lives into your PATH variable. It's been a while since I've been on Windows, but I think you get to the place to add it through (approximately) Control Panel / System / Advanced / Environment Variables. It's probably different depending on what version of Windows you have. First find out where Python got installed so you can type the directory name into the PATH with an appropriate separator.
Scryer
Colonel
 
Posts: 72
Joined: Wed Nov 09, 2011 5:40 pm

Re: python is not recognized as an internal or external comm

Postby gnu264 » Mon Dec 05, 2011 2:08 pm

... or you can replace every occurence of "python" in your .cmd file with "C:\python27\python.exe" (or whatever the path to your python executable is).
gnu264
Captain
 
Posts: 23
Joined: Tue Nov 08, 2011 5:27 pm


Return to Starter Packages & Tools

Who is online

Users browsing this forum: No registered users and 2 guests