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

时间:2021-06-26 23:10:15

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

我尝试安装这个软件。因为Python是必需的。

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

我从这里安装了名为python-2.7.3.msi的Python。

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?

我该如何解决这个问题?

2 个解决方案

#1


10  

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.

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

#2


2  

Try this screencast or (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.

有关详细信息,请参阅此处。

#1


10  

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.

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

#2


2  

Try this screencast or (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.

有关详细信息,请参阅此处。