Article reproduced from: http://www.server110.com/python/201404/9032.html
Download Curl:
Http://curl.haxx.se/download/curl-7.21.3.tar.gz
Extract:
Tar xzf curl-7.21.3.tar.gz
Into the decompression file, to compile the installation:./configure
Make
Make install
Download Pycurl:
Http://pycurl.sourceforge.net/download/pycurl-7.19.0.tar.gz
Extract:
Tar xzf pycurl-7.19.0.tar.gz
Installation:
Python setup.py Install
Looks like everything went well, a mistake was not prompted, but after running Python, there was a problem
Import Pycurl
Prompt for the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in?
Importerror:no module named Pycurl
Check it out, it is pycurl to assume that the curl path is incorrect.
You need to specify the Curl-config path for the Pycurl, as follows:
Python setup.py Install--curl-config=/usr/local/bin/curl-config
It's a little bit of a secret.