1.官网
https://www.anaconda.com/distribution/
2.下载python 3.7版本的anaconda
wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
3.安装
https://docs.anaconda.com/anaconda/install/linux/
3.1
sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
3.2
bash Anaconda3-2019.03-Linux-x86_64.sh
根据提示进行操做。这里,安装目录是:/home/xxx/anaconda3
3.2
选择不做初始化。
提示
You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:
eval "$(/home/xxx/anaconda3/bin/conda shell.YOUR_SHELL_NAME hook)"
To install conda's shell functions for easier access, first activate, then:
conda init
If you'd prefer that conda's base environment not be activated on startup,