服务器安装conda
1.本地环境下载conda
可以先在PC端下载指定的Anaconda-Linux包 Anaconda官方下载地址
通过SSH工具把软件包上传到云服务器
2.给文件写权限
chmod u+x 文件名 #或者chmod 777 文件名
3.运行安装脚本
sh 文件名
4.添加环境变量
vim ~/.bashrc
#加入环境变量
alias namePython='/root/anaconda3/bin/python'
export PATH="/root/anaconda3/bin:$PATH"
5.查看python版本
python --version#一定需要查看python版本
6.添加镜像文件
#新加镜像
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