Ubuntu 安装anaconda 全指令

下载软件

ubuntu@ip-172-31-22-130:~$ wget https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
--2017-10-19 09:41:21--  https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
Resolving repo.continuum.io (repo.continuum.io)... 104.16.19.10, 104.16.18.10, 2400:cb00:2048:1::6810:120a, ...
Connecting to repo.continuum.io (repo.continuum.io)|104.16.19.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 478051940 (456M) [application/x-sh]
Saving to: ‘Anaconda3-4.2.0-Linux-x86_64.sh’

Anaconda3-4.2.0-Lin 100%[===================>] 455.91M  70.0MB/s    in 6.6s

2017-10-19 09:41:28 (69.2 MB/s) - ‘Anaconda3-4.2.0-Linux-x86_64.sh’ saved [478051940/478051940]

 最后会询问是否把anaconda的bin添加到用户的环境变量中,选择yes

在终端输入python发现依然是gnome自带的python版本,这是因为.bashrc的更新还没有生效,命令行输入:source ~/.bashrc

在运行python即可

 

posted @ 2018-02-07 18:08  Osler  阅读(349)  评论(0编辑  收藏  举报