# 获取安装脚本
wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
# 如果很慢则可以选择国内镜像的链接,这里以清华大学镜像站为例
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2020.02-Linux-x86_64.sh
# bash命令执行安装脚本
bash Anaconda3-2019.03-Linux-x86_64.sh
ubuntu 16.04
# 添加环境变量
sudo vim ~/.bashrc
export PATH="/home/xupp/anaconda3/bin:$PATH"
# 使环境变量生效
source ~/.bashrc
centos 7.9
# 添加环境变量
sudo vim /etc/profile
export PATH="/root/anaconda3/bin:$PATH"
# 使环境变量生效
source /etc/profile