anaconda 配置环境变量 linux (Ubuntu)

anaconda安装完毕之后,:

conda -V

显示:conda: command not found

1. 直接开始操作:

$sudo gedit /etc/profile

如果没有安装gedit,输入命令sudo apt-get install gedit安装

2. 在文本内最后一行输入:

export PATH=~/anaconda3/bin:$PATH

注意,我的文件夹是anaconda3,说不定你安装的是anaconda2,看清楚。

3. 注入环境变量,让其立即生效(重启也行,太麻烦):

source /etc/profile

最后就完成了:

conda -V

显示版本号。




猜你喜欢

转载自blog.csdn.net/lanluyug/article/details/80106447