anaconda下载

清华镜像: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

官网: https://www.anaconda.com/download/

下载完毕后是一个.sh文件。

anaconda安装

这里以 Anaconda3-5.0.0-Linux-x86_64.sh 为例。

bash ./Anaconda3-5.0.0-Linux-x86_64.sh

全程 yes +回车 ,默认安装在home目录下

添加环境变量。

打开.bashrc文件。

sudo gedit ~/.bashrc

检查文件末尾是否有如下内容,没有的话添加。

export PATH="/home/用户名/anaconda3/bin:$PATH"

Ubuntu下anaconda安装和使用再执行命令让.bashrc中添加的路径生效:

$ source ~/.bashrc

此时anaconda就已经安装好了。
可以通过下列方式查看python的路径

which python

打开anaconda图形界面

anaconda-navigator

相关文章: