gpt4 book ai didi

python - BottlePy 和 GEVENT 出现 SSL 错误

转载 作者:太空宇宙 更新时间:2023-11-03 13:24:55 27 4
gpt4 key购买 nike

我需要一个尽可能快的 Python 网络服务器。我找到了 BottlePy,并将默认服务器更改为 Gevent,以便更快。但现在,当我尝试将图像发送到 Azure Blob 时,我收到此错误:

TypeError: __init__() got an unexpected keyword argument 'server_hostname'

enter image description here

有人可以帮我吗?

谢谢

最佳答案

这是一个 gevent 错误: https://groups.google.com/forum/#!searchin/gevent/ssl/gevent/olkwX4jUUlU/_OJECy1ppYIJ

修复安装最后一个版本(gevent-1.1rc5)的问题

sudo pip install --pre gevent --upgrade

最后一个是Release Candidate,那么你需要--pre参数。 https://groups.google.com/forum/#!topic/gevent/5mXt5w2kukE

关于python - BottlePy 和 GEVENT 出现 SSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35747769/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com