1.安装
pip3 install pyspider
2.错误
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-p0k3l2j5/pycurl/
这是因为 pyspider
依赖 pycurl
这个库,而 pycurl
又要求系统中存在相对应的库
解决方案:
# 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.相关链接
Centos安装Python3:https://www.jianshu.com/p/3ba082310252
网友评论