Curl 配置为使用 SSL,但我们无法确定它使用的是哪个 SSL 后端 [英] Curl is configured to use SSL, but we have not been able to determine which SSL backend it is using
本文介绍了Curl 配置为使用 SSL,但我们无法确定它使用的是哪个 SSL 后端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我执行 pip install thumbor
时,出现以下错误:
When I perform pip install thumbor
I get the following error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/t9/***********************/T/pip-install-knrabyuy/pycurl/setup.py", line 913, in <module>
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
File "/private/var/folders/t9/***********************/T/pip-install-knrabyuy/pycurl/setup.py", line 582, in get_extension
ext_config = ExtensionConfiguration(argv)
File "/private/var/folders/t9/***********************/T/pip-install-knrabyuy/pycurl/setup.py", line 99, in __init__
self.configure()
File "/private/var/folders/t9/***********************/T/pip-install-knrabyuy/pycurl/setup.py", line 316, in configure_unix
specify the SSL backend manually.''')
__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.
我尝试过 brew install curl
(成功)但是当我执行 pip install thumbor
时我遇到了同样的错误.
I've tried brew install curl
(which was successfull) however I get the same error when I perform pip install thumbor
.
知道为什么吗?
推荐答案
好像你安装 pycurl 错误.如果安装在 centos 上试试这个:export PYCURL_SSL_LIBRARY=openssl
.如果安装在 macos 上试试这个:
seems like you install pycurl error.
if install on centos try this:export PYCURL_SSL_LIBRARY=openssl
.
if install on macos try this one :
export PYCURL_SSL_LIBRARY=openssl
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
然后运行 pip install pycurl
这篇关于Curl 配置为使用 SSL,但我们无法确定它使用的是哪个 SSL 后端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文