您的当前位置:首页正文

关于协程gevent的monkey ssl警告

来源:图艺博知识网

MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors

原因:
The problem is that you're importing requests *before* you monkey patch.You must monkey patch before importing anything else.
意思就是你需要在导入request库之前monkey.patch_all()

Top