[英]Installing pyspider - "python setup.py egg_info" failed with error code 1
I'm trying to install pyspider on Debian GNU/Linux 9. Tried installing with pip and pip3, checked libevent-dev, libpython-dev, python-dev, distribute, ez_setup, and I still get the following message from pip/pip3 install pyspider:我正在尝试在 Debian GNU/Linux 9 上安装 pyspider。尝试使用 pip 和 pip3 安装,检查了 libevent-dev、libpython-dev、python-dev、distribute、ez_setup,我仍然从 pip/pip3 install 收到以下消息蜘蛛:
Command "python setup.py egg_info" failed with error code 1 in tmp/pip-build-<randomcharacters>/pycurl/
Right above that error message, it says this:在该错误消息的正上方,它说:
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config'
Any ideas?有任何想法吗?
pyspider
requires pycurl
which in turn requires libcurl
. pyspider
需要pycurl
,而后者又需要libcurl
。 So install libcurl
first:所以先安装
libcurl
:
apt install libcurl4 libcurl4-openssl-dev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.