在Sublime里面配置python3的环境变量方案。在tools菜单下选择 build system 下的new build system .去创建一个配置文件。把里面的内容替换为下面的代码,然后保存。
{
"cmd": ["python_path","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
}
{
"cmd": ["python_path","-u","$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
}