1、下載安裝包
wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
2、執行安裝
sh Anaconda3-5.1.0-Linux-x86_64.sh
接下來一路回車鍵或yes就可以
3、安裝完成後測試
python(帶有Anaconda)
Python 3.5.4 |Anaconda, Inc.| (default, Feb 19 2018, 10:59:04)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
如果沒有,則是環境變量沒有配置
vim .bashrc
添加以下配置
export PATH="/root/anaconda3/bin:$PATH"
添加完成後退出再登陸
4、conda錯誤處理
如果安裝組件報如下錯誤
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- flask-cors -> flask[version='>=0.9'] -> click[version='>=2.0'] -> python[version='>=3.6,<3.7.0a0']
- python=3.5.4
Use "conda info <package>" to see the dependencies for each package.
執行升級conda後再試
conda update conda