subline text添加python虚拟环境为编译工具

来源:互联网 发布:如何成为淘宝超级会员 编辑:程序博客网 时间:2024/06/05 14:22
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"
}


缺陷是自动补全,有些不能找到,但是运行能出结果