1.anaconda3安裝python
wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.shc++
安裝報錯,多是源的問題windows
直接在windows上下載anaconda3包,而後rz到centos上centos
地址:https://www.anaconda.com/distribution/#download-sectionscrapy
安裝anaconda3:工具
按照提示按enter和輸入yes進行安裝code
安裝成功後將anaconda3/bin目錄添加進環境變量中blog
anaconda3路徑能夠用which anaconda 或者 locate anaconda來找ip
輸入python,安裝成功get
安裝scrapy前需先安裝twisted
安裝Twisted
wget https://twistedmatrix.com/Releases/Twisted/17.1/Twisted-17.1.0.tar.bz2 tar -jxvf Twisted-17.1.0.tar.bz2
cd Twisted-17.1.0
python setup.py install
若是安裝失敗需先安裝gcc-工具
centos上g++的安裝是yum install gcc-c++命令
Twisted安裝成功
安裝scrapy
pip install scrapy