Curl已配置为使用SSL,但我们无法确定它使用的是哪个SSL后端 [英] Curl is configured to use SSL, but we have not been able to determine which SSL backend it is using

查看:111
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆