Install Pycurl deal some possible problems

2019-09-1014:09:19 Comment

In Centos 7 system, Python 3.6 environment, use pip3 install the pycurl modal, may have two problems below.

1.No libcurl-devel system libs

__main__.ConfigurationError: Could not run curl–config: [Errno 2] No such file or directory: ‘curl-config’

Solution: yum install libcurl-devel

2.pycurl cannot know use which ssl lib

__main__.ConfigurationError: Curl is configured to use SSL, but we have not been able to determine which SSL backend it is using. Please see PycURL documentation for how to specify the SSL backend manually.

Solution:export the environ variations, then install pycurl

export PYCURL_SSL_LIBRARY=openssl
export PYCURL_SSL_LIBRARY=nss
pip3 install pycurl

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: