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 <MODULE>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