下载地址 https://www.anaconda.com/download/#linux
Anaconda3-5.1.0-Linux-x86_64.sh 下载后
运行脚本文件 : bash ~/Downloads/Anaconda3-5.1.0-Linux-x86_64.sh
默认安装就好 中间有一步 是问是否要把anaconda 的bin目录是否添加到环境变量中,选择yes
安装完成后,source /etc/profile (如为conda not found,再运行source ~.profile)
输入命令conda --version 输出版本 为安装完成
二 设置国内镜像
#首先先添加清华的镜像源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
#如果无法解决,则删除channels配置文件中部分内容
#具体操作如下:
#1、快速创建channels配置文件的备份(保险起见)
cp ~/.condarc{,.bak} #查看配置文件的内容
cat ~/.condarc.bak
channels: - https://mirrors.tun