安装anaconda
- 在chrom中下载Anaconda3-4.0.0-Linux-x86_64.sh 至/home/username/Downloads
- 用bash ~/Downloads/Anaconda3-4.0.0-Linux-x86_64.sh 安装
- 配置环境变量export PATH=”/home/username/anaconda3/bin:$PATH”
- 重启环境变量source ~/.bashrc
- 查看版本号anaconda -V
- 激活anaconda环境:source ~/anaconda3/bin/activate ~/anaconda3
遇到的问题:
export PATH=~/anaconda3/bin:$PATH
export: Command not found.
此刻就要检查自己的自己的电脑是tcsh还是bash,输入:echo $0输出tcsh,此刻就要在终端输入bash,使终端用bash与电脑进行交互。
$ source ~/.bashrc
Illegal variable name.
同上,有可能是你的电脑不是用bash与操作系统进行交互的。
附:
从Ubuntu 6.10开始,默认使用dash(theDebian Almquist Shell)而不是bash(the GNUBourne-Again Shell).
但Login Shell还是bash. 原因是dash更快、更高效,而且它符合POSIX规范。Ubuntu在启动的时候会运行很多shell脚本,使用dash可以加快启动速度。
用命令查看: