1 # 首先從 Anaconda 官網下載 anaconda Linux 64Bit 版本命令行安裝包 2 $ wget https://repo.continuum.io/archive/Anaconda3-5.2.0-Linux-x86_64.sh 3 4 # 修改權限讓腳本可以運行 5 $ chmod +x Anaconda3-5.2.0-Linux-x86_64.sh 6 7 # 運行該安裝腳本 8 $ ./Anaconda3-5.2.0-Linux-x86_64.sh
9 10 # 剩下就是一路Yes或者Enter好了... 11 12 Welcome to Anaconda3 5.2.0 (by Continuum Analytics, Inc.) 13 14 15 In order to continue the installation process, please review the license 16 17 agreement. 18 19 Please, press ENTER to continue 20 >>> 21 22 # 重新加載一下 bash 就可以使用 `conda` 命令了 23 $ source ~/.bashrc 24 25 #然后嘗試一下運行 `conda -V` 命令行看是否已經安裝成功,如果返回對應的版本信息,則說明安裝成功。 26 27 $ conda -V 28 conda 4.2.13
一、更新 conda 命令:conda update -n base conda
二、安裝 Scrapy 命令:conda install scrapy
2、遇到問題:tar (child): bzip2: Cannot exec: No such file or directory
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
—————————————
解決方法很簡單,只要安裝bzip2就行了,yum安裝的命令如下:
yum -y install bzip2
參考網址:https://blog.csdn.net/mysteryflower/article/details/93064195
如果:centos7安裝scrapy error: command 'gcc' failed with exit status 1 執行以下命令:
1 yum install gcc libffi-devel python-devel openssl-devel
如果重裝 Anaconda3 需要執行以下命令:
1 出現問題:ERROR: File or directory already exists: /root/anaconda3 2 3 解決方案:刪除即可 rm -rf /root/anaconda3
參考網址:
1、https://rqalpha.readthedocs.io/zh_CN/latest/intro/detail_install.html
2、https://blog.csdn.net/ithongchou/article/details/83857346
3、https://blog.csdn.net/mysteryflower/article/details/93064195