- 下载安装sublime
安装及汉化Sublime Text 3
https://blog.csdn.net/timtian008/article/details/52839763#comments
2.新建 -编辑新系统
Tools -> Build System -> New Build System
在打开的文件里面贴上以下代码:
这个路径是你的python路径:/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
如果不是, 请换成你的python3路径
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
选择所添加的python3 新系统
3.保存后出现错误可以这样修改
4.编辑成功
测试一下环境是否正确
print ('hello, world')
然后: command + B