简体   繁体   中英

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:

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 . So install libcurl first:

apt install libcurl4 libcurl4-openssl-dev

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM