In file included from src/docstrings.c:4:0:
src/pycurl.h:148:30: fatal error: gnutls/gnutls.h: No such file or directory
# include <gnutls/gnutls.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-da6mXW/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-Q729Pd-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-da6mXW/pycurl
Storing debug log for failure in /root/.pip/pip.log
同上文一样,同样是在安装 pyspider
的过程中遇到的问题。
解决方案:
apt-get install libghc-gnutls-dev
安装一大堆东西之后,再次执行 pip
命令,即可完成安装。 - source:imlonghao.com
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论