Sublime Text 3中怎么更换为python3.5版本

时间:2022-07-12 18:37:05

Sublime Text 3 默认是python2.7版本,有的模块是只支持python3的,所以要新建一个python3.5(建立一个Build System)

Tools---Build System -------New Build System

然后输入{
    "cmd": ["/usr/bin/python3.5", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python"
}

再保存,命名为:python3


Linux可以用命令:which python3.5  可查到目录