解决已经安装好anaconda但【Ubuntu】conda: command not found解决办法

安装anaconda时候要修改默认路径,否则会安装到当前用户名底下的文件夹,导致其他用户无法使用

bash Anacondaxxxxx.bash -p PATH -u  
#PATH:为自定义的路径,我的为  /usr/local/
eg:sudo bash Anaconda3-5.0.1-Linux-x86_64.sh  -p /opt/Anaconda/ -u

在etc/profile下添加anaconda路径

vim /etc/profile
export PATH=/opt/Anaconda3/bin:$PATH
source  /etc/profile

如果conda list 不能列出安装的包,将anaconda3的安装目录添加到 .bashrc中,按下述操作:

在Terminal 终端输入下列命令:

sudo gedit ~/.bashrc
export PATH=/opt/Anaconda3/bin:$PATH
source  ~/.bashrc

此时再运行conda info --envs

上一篇:libmysqlclient.so.18(libmysqlclient.so.20 libmysqlclien.so) => not found


下一篇:A query was run and no Result Maps were found for the Mapped Statement 'xxxxxxxxx'.