简介
anaconda是一个环境管理器,不同的环境可以安装不同的python版本,包版本
下载
- 在服务器上下载:
由于使用命令行,那么使用wget命令,使用清华镜像即可:
## 这个是镜像的网址
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
## 在上述网址下,选择合适的安装包如下
Anaconda3-5.3.1-Linux-x86_64.sh
最后下载命令为“
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.1-Linux-x86_64.sh
安装
然后运行sh ./Anaconda3-5.3.1-Linux-x86_64.sh
即可
设置环境变量
在Linux下:
sudo vim /etc/profile
## 在文件最后写入
export PATH=~/anaconda3/bin:$PATH
vim保存退出后,注入环境变量
source /etc/profile
验证
conda -V