步骤一:删除centos7中自带有python2.7(可选)
(1)强制删除已安装python及其关联
# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
(2)删除残余文件
# whereis python|xargs rm -frv
步骤二:下载镜像
清华镜像
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-4.2.0-Linux-x86_64.sh
步骤三:安装
bash Anaconda3-4.2.0-Linux-x86_64.sh (或者后面加个-u参数,表示覆盖安装)
如安装过别的版本直接rm -rf 命令删除
(3)其它
yum install wget
yum install -y bzip2 (解决bunzip2: command not found)
source ~/.bash_profile(解决command not found: conda 或pip等)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)