当我在 PowerShell 中输入 python 时,出现如下错误:
Program 'python' failed to execute: The system cannot find the file specified
At line:1 char:11
+ python.exe <<<< .
At line:1 char:1
+ <<<< python.exe
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
Run Code Online (Sandbox Code Playgroud)
我已将 C:\Python27 及其子目录添加到 PATH。我可以通过键入 python.exe 来运行它。可以以相同的方式运行脚本。
我安装了 Python 2.7.11 64 位。