在linunx下安装Anaconda,做个记录
下载安装Anaconda
下载地址:https://repo.continuum.io/archive/index.html
打开下载地址后,以Anaconda2开头的就是python2版本,以Anaconda3开头的就是python3版本
Anaconda3-2020.07-Linux-x86_64.sh
1.在终端输入,跳转到你想下载到的文件目录下,下载Anaconda3
wget https://repo.continuum.io/archive/Anaconda3-2020.07-Linux-x86_64.sh
2.下载完成以后,在终端当前目录下,输入:
bash Anaconda3-2020.07-Linux-x86_64.sh
3.开始安装
Do you accept the license terms? [yes|no]
[no] >>>yes
Anaconda3 will now be installed into this location:
/home/xh/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/xh/anaconda3] >>> ENTER
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> yes
4.安装完成,cd到你安装Anaconda3 的目录下/home/xh/anaconda3,在终端输入:
conda -V
显示conda 4.8.3
分别输入python python2 python3,如图
可以看到python2.7和python3.8都装上了
如果安装过程中出错问题,或者想更新另一个版本,删除anaconda也很方便,执行下面命令删除安装目录就行了
rm -rf /home/xh/anaconda3