注意:以下操作以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