python is not recognized as an internal or external command

非 Y 不嫁゛ 提交于 2019-11-26 10:00:39

问题


I try to install this software. For that Python is required.

I installed Python from here of name python-2.7.3.msi.

I am working on Windows 7.

Hierarchy of my Python software is same as in this post.

After doing that, I make PATHVALUE = C:\\Python27\\Scripts

When I run any Python file, it shows

python is not recognized as an internal or external command, operable program or batch file. Failed to create vc project files.

How can I resolve this?


回答1:


You want to append to your PATH the string C:\Python27, not the scripts folder. Basically, you want the folder with the actual binary python.exe on your path.




回答2:


Try this screencast or (not a best way) put python executable into C:\Windows\system32 folder.

The better way is to change Windows environment variable. In short, your path is: My Computer ‣ Properties ‣ Advanced ‣ Environment Variables

For more details please see this.



来源:https://stackoverflow.com/questions/14433499/python-is-not-recognized-as-an-internal-or-external-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!