3行 代码安装Anaconda
Anaconda各个版本软件列表: https://repo.continuum.io/archive/
1. 下载
将下载好的文件copy到特定的目录下,我是copy到Downloads目录下面
然后cd
到所在目录:
查看
(base) li@li-System-Product-Name:~$ cd ~/Downloads
(base) li@li-System-Product-Name:~/Downloads$ ls
Anaconda3-2019.03-Linux-x86_64.sh NVIDIA-Linux-x86_64-418.56.run
2.安装
bash Anaconda3-2019.03-Linux-x86_64.sh
(base) li@li-System-Product-Name:~/Downloads$ bash Anaconda3-2019.03-Linux-x86_64.sh
出现下面内容,点击enter,之后一直按yes就好
Welcome to Anaconda3 2019.03
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
3.配置环境变量
(base) li@li-System-Product-Name:~$ echo 'export PATH="~/anaconda2/bin:$PATH"' >> ~/.bashrc
(base) li@li-System-Product-Name:~$ source ~/.bashrc
(base) li@li-System-Product-Name:~$ which conda
/home/li/anaconda3/bin/conda
(base) li@li-System-Product-Name:~$ conda --version
conda 4.6.11
conda list 可以列出安装的库。