我正在尝试在 Debian GNU/Linux 9 上安装 pyspider。尝试使用 pip 和 pip3 安装,检查了 libevent-dev、libpython-dev、python-dev、distribute、ez_setup,但我仍然从 pip/pip3 install pyspider 收到以下消息:
Command "python setup.py egg_info" failed with error code 1 in tmp/pip-build-<randomcharacters>/pycurl/
在该错误消息的正上方,写着:
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config'
有什么想法吗?
最佳答案
pyspider
requires pycurl
依次 requires libcurl
。所以安装libcurl
第一:
apt install libcurl4 libcurl4-openssl-dev
关于python - 安装 pyspider - "python setup.py egg_info"失败,错误代码为 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58004858/