首先按照配置的过程
1. python下载地址
2. sublime3下载地址
过程百度一堆就不细写了
主要代码是:
{
"cmd": ["XXXXXXXXXX","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
}
XXXXXXXX代表安装python的路径 需要注意正反斜杠
配置完成后报错:
[WinError 5] 拒绝访问。
错误解决:
路径未配置正确,需要精确到python.exe
在路径后面加上即可
{
"cmd": ["C:/Users/Ling/AppData/Local/Programs/Python/Python37/python.exe","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
}
配置完成: