Windows 10 SUMBOLE3-在Windows中执行python脚本时找不到指定的文件

Windows 10 SUMBOLE3-在Windows中执行python脚本时找不到指定的文件,windows-10,sublimetext3,Windows 10,Sublimetext3,我正在尝试在Windows10EnterpriseEdition上设置Sublimite3,以便使用工具>构建来执行python脚本 这是一个简单的hello_world.py脚本 以下是我的输出: [WinError 2] The system cannot find the file specified [cmd: ['python3', '-u', 'C:\\Users\\PBC9390\\Desktop\\python_work\\hello_world.py']] [dir: C:\U

我正在尝试在Windows10EnterpriseEdition上设置Sublimite3,以便使用工具>构建来执行python脚本

这是一个简单的hello_world.py脚本

以下是我的输出:

[WinError 2] The system cannot find the file specified
[cmd: ['python3', '-u', 'C:\\Users\\PBC9390\\Desktop\\python_work\\hello_world.py']]
[dir: C:\Users\PBC9390\Desktop\python_work]
[path: C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files\Python37\Scripts\;C:\Program Files\Python37\;C:\Program Files\Git\bin;C:\Program Files\Git\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\IBM\EHLLAPI\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\1E\NomadBranch\;C:\Program Files (x86)\Common Files\Hitachi ID\;C:\Program Files\Common Files\Hitachi ID\;C:\Program Files (x86)\WebEx\Productivity Tools;C:\Program Files\PuTTY\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Amazon\AWSCLI\bin\;;C:\hashiCorp\Terraform;C:\Program Files (x86)\Webex\Webex\Applications;C:\HashiCorp\Vagrant\bin;C:\Users\PBC9390\AppData\Local\Microsoft\WindowsApps;C:\Users\PBC9390\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin]
这是我的Python3.sublime构建文件:

{
    "cmd": ["python3", "-u", "$file"],
}
这就是问题所在吗?我不确定它是如何用双反斜杠“\”转换的:


python3.exe
是否在路径中显示的文件夹中可用?如果打开命令控制台并输入
where python3
,它会说什么?斜杠加倍是调试输出的一部分,因为\字符在Python字符串中是特殊的。谢谢,该命令的输出指向这里:C:\Program Files\Python37\Python.exe-我在路径中没有看到.exe,但文件夹是路径:C:\Program Files\Python37\。这就是问题所在吗?我没有管理员权限设置对环境变量进行更改。
python3.exe
是否在路径中显示的文件夹中可用?如果打开命令控制台并输入
where python3
,它会说什么?斜杠加倍是调试输出的一部分,因为\字符在Python字符串中是特殊的。谢谢,该命令的输出指向这里:C:\Program Files\Python37\Python.exe-我在路径中没有看到.exe,但文件夹是路径:C:\Program Files\Python37\。这就是问题所在吗?我没有管理员权限设置对环境变量进行更改。
'C:\\Users\\PBC9390\\Desktop\\python_work\\hello_world.py'