我尝试了几种不同的方法来解决我的问题。 我正在尝试通过崇高的文本运行python文件。我不知道如何正确设置构建系统。
我的python安装在:C:\ Users \ Nayeli \ AppData \ Local \ Programs \ Python \ Python37-32 \
我的崇高文字3在:C:\ Program Files \ sublime text 3
我的脚本:C:\ pythonscripts
我尝试使用cmd,不带“ shell true”,用/ D代替-u,用double \代替/ ...
{
"shell_cmd": ["C:/Users/Nayeli/AppData/Local/Programs/Python/Python37-32/python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
"shell":"true"
}
这是我得到的错误:
[WinError 5]访问被拒绝 [shell_cmd:py -3 -OO -u“ C:\ Users \ Nayeli \ AppData \ Roaming \ Sublime Text 3 \ Packages \ User \ untitled.sublime-build”] [dir:C:\ Users \ Nayeli \ AppData \ Roaming \ Sublime Text 3 \ Packages \ User] [路径:C:\ python37; C:\ Program Files \ Git \ cmd; C:\ Program Files \ Git \ mingw64 \ bin; C:\ Program Files \ Git \ usr \ bin; C:\ Users \ Nayeli \ AppData \ Local \ Programs \ Python \ Python37-32 \ Scripts \; C:\ Users \ Nayeli \ AppData \ Local \ Programs \ Python \ Python37-32] [完成]