Turn! Python installation Pycurl failed, and the solution

Source: Internet
Author: User

Python installation Pycurl failure, and workaround

CentOS Installation Pycurl

CentOS installation Pycurlyum Install python-devel CURL-DEVELPIP3 Install Pycurl

MAC (old version) install Pycurl

Resolves an issue with xcrun:error:invalid active developer path, missing Xcrun after MacOS upgrade, Xcode-select--install then Dongchang-5:qqmusic baoshan$ pip3 Install pycurlcollecting pycurl Using cached pycurl-7.43.0.1.tar.gzbuilding Wheels for collected packages: Pycurl Running setup.py bdist_wheel for Pycurl ... done Stored in directory:/USERS/BAOSHAN/LIBRARY/CACHES/PIP/WHEELS/A5 /5b/c8/f80900b09b49815e1f90dbae2f57e49b3f4c61071db40fb238successfully built pycurlinstalling collected packages: Pycurlsuccessfully installed Pycurl-7.43.0.1importerror:pycurl:libcurl link-time SSL Backend (OpenSSL) is different fro M Compile-time SSL Backend (none/other) workaround # PIP Uninstall pycurl# export pycurl_ssl_library=openssl# pip install Pycurldo Ngchang-5:qqmusic baoshan$ pip3 Install pycurlcollecting pycurlinstalling collected packages:pycurlsuccessfully Installed pycurl-7.43.0.1 above reference from: Http://www.kxtry.com/archives/398dongchang-5:include baoshan$ Python3python 3.5.2 ( V3.5.2:4DEF2A2901A5, June, 10:47:25) [GCC 4.2.1 (APple Inc. build 5666) (dot 3)] on Darwintype ' help ', ' copyright ', ' credits ' or ' license ' for more information.>>> Import Pycurltraceback (most recent call last): File ' <stdin> ', line 1, in &LT;MODULE&GT;IMPORTERROR:PYCURL:LIBC URL Link-time SSL Backend (OpenSSL) is different from Compile-time SSL backend (None/other) reference solution: Https://www.jianshu.com /p/50b6771eb853

New version of Mac installation Pycurl

But here's a pit: in a high-version MAC system environment variable, you can't find the header file for OpenSSL.
Because of the OpenSSL version of the new version of Mac Libressl 2.2.7
PIP3 Uninstall pycurl# unloading library export pycurl_ssl_library =opensslexport Ldflags=-l/usr/local/opt/openssl/libexport cppflags=-i/usr/local/opt/openssl/include# OpenSSL related header file path pip3 install Pycurl--compile--no-cache-dir # Recompile the installation is finally done.

dongchang-5:pycurl-7.43.0 baoshan$ Python3python 3.5.2 (v3.5.2:4def2a2901a5, June, 10:47:25) [GCC 4.2.1 (Apple Inc. Build 5666) (dot 3)] on Darwintype ' help ', ' copyright ', ' credits ' or ' license ' for more information.>>> import p Ycurl>>>
Reference: https://segmentfault.com/q/1010000012674778

Go! Python installation Pycurl failed, and fix

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.