Python安装pycurl失败的解决方法

时间:2021-05-23

Centos安装pycurl

centos 安装pycurlyum install python-devel curl-develpip3 install pycurl

Mac(老版本)安装pycurl

解决MacOS升级后出现xcrun: error: invalid active developer path, missing xcrun的问题xcode-select --install然后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 from compile-time ssl backend (none/other)解决办法# pip uninstall pycurl# export PYCURL_SSL_LIBRARY=openssl# pip install pycurldongchang-5:qqmusic baoshan$ pip3 install pycurlCollecting pycurlInstalling collected packages: pycurlSuccessfully installed pycurl-7.43.0.1上述参考自:http:///q/1010000012674778

搞了一个多下午,终于找到解决方法。。。

以上这篇Python安装pycurl失败的解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章