Online a test machine, the network environment is more bizarre, can not download the Python standard library of the source package, and can not be a PIP, such as on-line compilation installation.
There is no way to download the source package from other servers, and then the SCP will replicate the past. Here is the installation process that I recorded.
First download the good source package from the official website
In reference to the installation instructions in reference [2], you need to install the Libcurl-dev library beforehand and make sure that Curl-config is in the current user's lookup path:
Yum-y Install Libcurl-dev
and find the location of the curl-config.
Locate Curl-config
I am/usr/bin to see if this path is included in the position of Echo $PATH, and I am here to meet the criteria. Below start source code compiles Pycurl
wget https://pypi.python.org/packages/12/3f/557356b60d8e59a1cce62ffc07ecc03e4f8a202c86adae34d895826281fb/ pycurl-7.43.0.tar.gz#md5=c94bdba01da6004fa38325e9bd6b9760
Tar zxvf pycurl-7.43.0.tar.gz
CD pycurl-7.43.0
Python setup.py Install
After the installation is complete, check to see if the installation is successful from the Python command line.
Reference documents
[1].http://pycurl.io/docs/latest/install.html [2].https://pypi.python.org/pypi/pycurl/