Linux安装Anaconda

来源:互联网 发布:淘宝网开网店 编辑:程序博客网 时间:2024/04/28 17:53

注意:以下操作以root身份进行

1.下载安装包

到http://continuum.io/downloads.html下载sh安装包,这里下载的是Anaconda2-4.0.0-Linux-x86_64.sh

2.执行安装

bash Anaconda2-4.0.0-Linux-x86_64.sh

3.修改/etc/profile:

export PATH=/home/username/anaconda2/bin:$PATH

4.修改~/.bash_profile

如果PATH=$PATH:$HOME/bin则需要改成如下:
PATH=$PATH:$HOME/bin:/sbin:/usr/bin:/usr/sbin
如图:

立即生效:
source ~/.bash_profile
source /etc/profile

0 0