美文网首页python技巧
关于协程gevent的monkey ssl警告

关于协程gevent的monkey ssl警告

作者: 陆_志东 | 来源:发表于2018-09-30 11:55 被阅读0次

    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()

    相关文章

      网友评论

        本文标题:关于协程gevent的monkey ssl警告

        本文链接:https://www.haomeiwen.com/subject/otcwoftx.html