python 不被识别为内部或外部命令

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14433499/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 11:29:28  来源:igfitidea点击:

python is not recognized as an internal or external command

pythonnode.jspath-variables

提问by devsda

I try to install thissoftware. For that Python is required.

我尝试安装这个软件。为此,需要 Python。

I installed Python from hereof name python-2.7.3.msi.

我从这里的 name安装了 Python python-2.7.3.msi

I am working on Windows 7.

我正在使用 Windows 7。

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

我的 Python 软件的层次结构与这篇文章中的相同。

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

这样做之后,我让 PATHVALUE = C:\Python27\Scripts

When I run any Python file, it shows

当我运行任何 Python 文件时,它会显示

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

python 不是内部或外部命令,也不是可运行的程序或批处理文件。未能创建 vc 项目文件。

How can I resolve this?

我该如何解决这个问题?

采纳答案by Yuushi

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

您想附加到您PATH的字符串C:\Python27,而不是脚本文件夹。基本上,您需要在python.exe路径上包含实际二进制文件的文件夹。

回答by insider

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

试试这个截屏视频或者(不是最好的方法)把 python 可执行文件放到 C:\Windows\system32 文件夹中。

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

更好的方法是更改​​ Windows 环境变量。简而言之,您的路径是:我的电脑?特性 ?先进的 ?环境变量

For more details please see this.

有关更多详细信息,请参阅