gedit ~/.bashrc
在path中添加虚拟环境所的路径,比如我的是 /home/harv3y/anaconda2/envs/py3/bin
原来是:
export PATH="/home/harv3y/anaconda2/bin$PATH"
添加后为
export PATH="/home/harv3y/anaconda2/bin:/home/yourname/anaconda2/envs/py3/bin$PATH"
subline text Tools->Buid System->New Buildsyetem,,修改代码如下,其中的路径自己 改下
{
"cmd":["python", "-u", "$file"],
"path":"/home/yourname/anaconda2/envs/py3/bin",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
缺陷是自动补全,有些不能找到,但是运行能出结果