在我的另一篇文章:《在 MAC Sublime 集成 Python 编译环境》中详细介绍了在 MAC(也适用于 Linux)中的集成方法,Windows 其实非常类似,只是 Build 配置文件中的 “cmd” 稍微有点不同:
{
"cmd": ["C:/Program Files (x86)/Python/python.exe", "-u", "$file"],
"file_regex": "^[ ]File \"(…?)\", line ([0-9]*)",
"selector": "source.python",
"encoding": "utf-8"
}