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"