gnutls.h: No such file or directory 的解决方案

admin 2024年4月4日14:55:48评论4 views字数 766阅读2分33秒阅读模式
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

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年4月4日14:55:48
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   gnutls.h: No such file or directory 的解决方案https://cn-sec.com/archives/2631259.html

发表评论

匿名网友 填写信息