【Tools】Sublime3配置Python3

环境

Sublime3

Miniconda3

步骤

1、sublime3 -> Tools -> Build System -> New Build System
2、在弹出的文本页面中粘贴如下代码:

{
	"cmd": ["C:\\Anaconda3\\python.exe","-u","$file"],
	"path":"C:\\Anaconda3\\python.exe",
	"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
	"selector": "source.python",
	"env": { "PYTHONIOENCODING": "utf8" },
}

3、保存,文件名改为python3

4、在sublime中新建文本,然后sublime3 -> Tools -> Build System中选择python3,输入python代码后通过ctrl + b即可运行。

你可能感兴趣的:(【Tools】)