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

xiaoxiao2021-02-28  58

报错

In file included from src/docstrings.c:4:0:     src/pycurl.h:173:30: fatal error: gnutls/gnutls.h: No such file or directory     compilation terminated.     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1     ---------------------------------------- Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-semni51g/pycurl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-s3gpwjjk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-bui

解决方案:

apt-get install libghc-gnutls-dev

安装一大堆东西之后,再次执行 pip 命令,即可完成安装。

转载请注明原文地址: https://www.6miu.com/read-59270.html

最新回复(0)