Centos7中pip安装pycurl出现问题解决方案

报错信息:

Could not run curl-config: [Errno 2] No such file or directory: 'curl-config'

解决方案:

yum install libcurl-devel

报错信息:

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

解决方案:

pip uninstall pycurl# 卸载库

export PYCURL_SSL_LIBRARY=openssl

export LDFLAGS=-L/usr/local/opt/openssl/lib

export CPPFLAGS=-I/usr/local/opt/openssl/include  # openssl相关头文件路径

pip install pycurl --compile --no-cache-dir # 重新编译安装

猜你喜欢

转载自blog.csdn.net/weixin_44024324/article/details/85274369