2017-09-19 6 views
0

J'utilise ubuntu 16.04 et python 2.7.12.Installation de pycurl avec 'erreur fatale: gnutls/gnutls.h: Aucun fichier ou répertoire'

Lorsque j'essaie d'installer pycurl avec pip, je pouvais voir ci-dessous log.

[email protected]:~/git/ccc$ sudo pip install pycurl 
    Downloading pycurl-7.43.0.tar.gz (182kB) 
    100% |████████████████████████████████| 184kB 515kB/s 
Installing collected packages: pycurl 
    Running setup.py install for pycurl ... error 

... 

    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. 

Comment installer pycurl avec le journal ci-dessus?

Répondre

1

Installer gnutls premier en utilisant:

sudo apt-get install libgnutls28-dev 

Ensuite, essayez à nouveau.

1

J'ai trouvé la réponse par moi-même.

Vous devez d'abord installer libgnutls28-dev comme ci-dessous.

sudo apt-get install libgnutls28-dev