清华源下载
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2018.12-Linux-x86_64.sh
使用sh/bash Anaconda3.5.2.0-Linux-x86_64.sh进行安装
一路yes
安装中如下报错
yum -y install bzip2
切换到/root/目录下,删掉anaconda3文件夹
继续使用sh/bash Anaconda3.5.2.0-Linux-x86_64.sh进行安装(默认安装到/root/anaconda3)
安装完成,写一个/root/.bashrc文件。增加环境变量
编辑 vi /root/.bashrc 这个配置文件
export PATH=/root/anaconda3/bin:$PATH
export PATH=$PATH:/root/anaconda3/bin
之后使用 source ~/.bashrc 激活配置文件
终端输入conda list 查看
原文:https://www.cnblogs.com/zuoxiaodragon/p/12730238.html