1.安裝
pip3 install pyspider
2.錯(cuò)誤
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-p0k3l2j5/pycurl/
這是因?yàn)?pyspider 依賴 pycurl 這個(gè)庫,而 pycurl 又要求系統(tǒng)中存在相對應(yīng)的庫
解決方案:
# Ubuntu
apt-get install libcurl4-gnutls-dev
# Centos
yum install libcurl-devel
pip3 install pycurl
export PYCURL_SSL_LIBRARY=openssl
export PYCURL_SSL_LIBRARY=nss
3.啟動
pyspider all
4.相關(guān)鏈接
Centos安裝Python3:http://www.itdecent.cn/p/3ba082310252