CentOS 6.7 On the source code compiled installation Pycurl the latest version 7.43.0

Source: Internet
Author: User
Tags centos

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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.