yum -y install bzip2 yum install wget镜像
anaconda的官网下载镜像有点慢,所以在镜像网站下
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
选择最新的
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.1-Linux-x86_64.sh --no-check-certificate
bash Anaconda3-5.3.1-Linux-x86_64.sh
激活配置的环境变量
#root权限下使用 source /root/.bashrc
#添加局部变量【具体路径看你自己下载的路径】 vi ~/.bashrc export PATH="/etc/anaconda3/bin:$PATH" source ~/.bashrc
#定义全局变量 #注意需切换到root用户 vi /etc/profile export PATH="/etc/anaconda3/bin:$PATH"#在文件最后写入,并保存 source /etc/profile #激活
最后运行下pyhton,就能直接看到python3.7,而不是2.7啦



