cd后无法识别Python

时间:2021-10-20 20:23:42

I am using Windows 8 64-bit. I installed Python, and see that Windows Path is appended by the two paths : C:\Python27\Scripts; C:\Python27;

我使用的是Windows 8 64位。我安装了Python,并看到Windows Path附加了两个路径:C:\ Python27 \ Scripts; C:\ Python27;

So when I run cmd and type python I get the error

因此,当我运行cmd并键入python时,我得到了错误

'python' is not recognized as an internal or external command, operable program or batch file.

'python'不被识别为内部或外部命令,可操作程序或批处理文件。

I also tried py, same error. I'm currently using the solution proposed here, so I'm typing C:\Python27\python.exe manage.py runserver for example. But this is not what I want. How can I make it work with the command python?

我也试过py,同样的错误。我目前正在使用这里提出的解决方案,所以我输入的是C:\ Python27 \ python.exe manage.py runserver。但这不是我想要的。如何使用命令python使其工作?

Thanks in advance.

提前致谢。

1 个解决方案

#1


You should not have a space after the semicolon in the PATH value.

在PATH值中分号后面不应该有空格。

#1


You should not have a space after the semicolon in the PATH value.

在PATH值中分号后面不应该有空格。