1. 下載Anaconda
進入Anaconda官網(wǎng) 酬土,根據(jù)自己電腦的配置選擇合適的版本
junli@ubuntu16:~$ wget https://repo.anaconda.com/archive/Anaconda3-4.4.0-Linux-x86_64.sh
2. 安裝
junli@ubuntu16:~$ ls
Anaconda3-4.4.0-Linux-x86_64.sh data gpg sensors software Workspace 模板 圖片 下載 桌面
codes examples.desktop nodejs snap tools 公共的 視頻 文檔 音樂
junli@ubuntu16:~$
## step1: 命令行安裝 Anaconda
junli@ubuntu16:~$ bash Anaconda3-4.4.0-Linux-x86_64.sh
Welcome to Anaconda3 4.4.0 (by Continuum Analytics, Inc.)
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
===================================
Anaconda End User License Agreement
===================================
## step2: yes, 接受條款
Do you approve the license terms? [yes|no]
Please answer 'yes' or 'no':
>>> yes
......
## step3: 確認安裝目錄格嗅,默認按Enter,否則輸入你想安裝的位置远搪。我這里直接默認安裝目錄。
Anaconda3 will now be installed into this location:
/home/junli/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/junli/anaconda3] >>>
PREFIX=/home/junli/anaconda3
installing: python-3.6.1-2 ...
installing: _license-1.1-py36_1 ...
......
installation finished.
## step4: 是否將anaconda安裝路徑添加到系統(tǒng)環(huán)境中搜变,yes
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/junli/.bashrc ? [yes|no]
[no] >>> yes
Prepending PATH=/home/junli/anaconda3/bin to PATH in /home/junli/.bashrc
......
## step5: 使其立即生效缅茉。安裝環(huán)境寫到'/home/junli/.bashrc'文件中,所有使用命令'source ~/.bashrc'
junli@ubuntu16:~$ source ~/.bashrc
## step6: 查看conda版本信息
junli@ubuntu16:~$ conda info
Current conda install:
platform : linux-64
conda version : 4.3.21
conda is private : False
conda-env version : 4.3.21
conda-build version : not installed
python version : 3.6.1.final.0
requests version : 2.14.2
root environment : /home/junli/anaconda3 (writable)
default environment : /home/junli/anaconda3
envs directories : /home/junli/anaconda3/envs
/home/junli/.conda/envs
package cache : /home/junli/anaconda3/pkgs
/home/junli/.conda/pkgs
channel URLs : http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
config file : /home/junli/.condarc
netrc file : None
offline mode : False
user-agent : conda/4.3.21 requests/2.14.2 CPython/3.6.1 Linux/4.15.0-142-generic debian/stretch/sid glibc/2.23
UID:GID : 1000:1000
- 卸載
## step1: 刪除安裝目錄
junli@ubuntu16:~$ rm -rf /home/junli/anaconda3
## step2: 注釋/刪除路徑视乐,保存并關(guān)閉.bashrc文件
junli@ubuntu16:~$ gedit ~/.bashrc
## step3: 使其立即生效洛搀。
junli@ubuntu16:~$ source ~/.bashrc