我已经从 this 安装了 python 2.7.11 链接,然后重新启动我的系统。但是,当我转到 cmd 并运行 python --version
时。它给我一个错误
python not recognized as an internal or external command.
所以我尝试手动将它添加到我的 Path 变量
我看到我的 python 安装在 C:\Python27
所以我添加 someotherpath;C:\Python27
到路径变量并重新打开 windows cmd
。但它仍然给我同样的错误。
有没有其他方法可以解决这个问题。
谢谢
最佳答案
请在命令提示符下运行以下命令。
echo %PATH% It should have whatever path you have set manually. Otherwise Open a new Command prompt and try the same command. Run python
如果在那之后它不工作。
请检查 Python.exe 在 C:\Python 中是否可用?
关于Python 未被识别为 Windows 7 中的内部或外部命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39992339/