Installation Pycurl appears: ImportError:pycurl:libcurl link-time SSL Backend (NSS)

Source: Internet
Author: User

System version CentOS release 6.2 (Final)

Installing Pycurl with Pip today is a scenario where the following occurs:

650) this.width=650; "style=" width:981px;height:102px; "title=" 1.png "src=" http://s3.51cto.com/wyfs02/M00/73/74/ Wkiom1x-ehuzq83naahjodbs9jo522.jpg "width=" 1084 "height=" 117 "alt=" Wkiom1x-ehuzq83naahjodbs9jo522.jpg "/>

To solve this problem is to specify the way SSL, NSS, OpenSSL, etc.

Some of the methods:

Law One:

1. If PIP is not installed, first install PIP;
2, pip uninstall Pycurl uninstall before the installation;
3, the implementation of export PYCURL_SSL_LIBRARY=NSS;
4, pip install Pycurl again

PS: May not appear NSS, but OpenSSL, as long as the corresponding change to OpenSSL can be

Law II:

Install with the source code, but need Curl-config package support, so the source reinstall Curl

wget http://curl.haxx.se/download/curl-7.36.0.tar.gz

The installation process is slightly

After export ld_library_path=/us/local/lib

Curl-o https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.1.tar.gz

TAR-ZXVF pycurl-7.19.3.1.tar.gz

CD pycurl-7.19.3.1

Python setup.py Install--curl-config=/usr/local/bin/curl-config

Installation is complete!

Through Law one no way to solve, do not know why, law two can be solved.

Installation Pycurl appears: ImportError:pycurl:libcurl link-time SSL Backend (NSS)

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.