Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jadhavmanoj/ed6bc29a2c35241234a2d98f9b821cc9 to your computer and use it in GitHub Desktop.
Save jadhavmanoj/ed6bc29a2c35241234a2d98f9b821cc9 to your computer and use it in GitHub Desktop.
python3- Pycurl installation failed on ubuntu16
I got this error:
In file included from src/docstrings.c:4:0:
src/pycurl.h:4:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
To resolve this issue
Steps to follow
1. install -
apt-cache depends python-pycurl
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install libgnutls-dev
if there is ssl problem please check here
https://github.com/transloadit/python-sdk/issues/4
export PYCURL_SSL_LIBRARY=openssl
then -
pip install pycurl==7.43.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment