Ubuntu18.04下安装anaconda3

1.在清华镜像中找到anaconda3-4.2.0(python3.5.2版本).sh

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

2.cd到anaconda下载地址,修改文件名为Anaconda3.sh(方便)

$ bash Anaconda3.sh

3.然后回车查看完权限,选择yes进行安装。

4.可以自行选择安装位置 

5.安装过程中会需要设置环境变量(选择yes即可),若没有,则需要手动添加

vi .bash_profile 
#在最后一行加上如下配置:
export PATH=/anaconda/anaconda3/bin:$PATH
#如果是默认安装路径的话则为:
export PATH=/home/py/anaconda3/bin:$PATH
#然后使其生效:
source .bash_profile

 或者

source ~/.bashrc

如果需要卸载anaconda的话,只需要删除anaconda目录即可:

rm -rf ~/anaconda3
原文地址:https://www.cnblogs.com/wind-chaser/p/11324684.html