ubuntu sh安装包的安装方式以Miniconda2为例
https://repo.anaconda.com/miniconda/
如果需要python2.7版本可下载以下版本
Miniconda2-latest-Linux-x86_64.sh
打开终端输入安装命令
sudo sh Miniconda2-latest-Linux-x86_64.sh
然后按提示安装,注意安装位置 默认是在 root下,可能会有权限问题,可改成
/usr/miniconda2
为了使python能在终端生效,可打开设置
sudo gedit ~/.bashrc
在打开的编辑器中的最后一行添加以下内容:
export PATH="/usr/miniconda2/bin:$PATH"