【发布时间】:2016-07-23 06:28:20
【问题描述】:
当我在 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
我已将 C:\Python27 及其子目录添加到 PATH。我可以通过键入 python.exe 来运行它。可以以同样的方式运行脚本。
我安装了 Python 2.7.11 64 位。
【问题讨论】:
-
尝试启动 python.exe 并重启系统
标签: python windows powershell