python技巧

关于协程gevent的monkey ssl警告

2018-09-30  本文已影响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()

上一篇 下一篇

猜你喜欢

热点阅读