MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. It may also silently lead to incorrect behaviour on Python 3.7

MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors, including RecursionError on Python 3.6. It may also silently lead to incorrect behaviour on Python 3.7. Please monkey-patch earlier. See https://github.com/gevent/gevent/issues/1016. Modules that had direct imports (NOT patched): ['urllib3.contrib.pyopenssl (C:\\Python37\\lib\\site-packages\\urllib3\\contrib\\pyopenssl.py)'].
monkey.patch_all()

 

调整一下顺序,把import requests  放到  monkey.patch_all()  后面

 

 

 

posted @ 2021-12-15 14:34  淋哥  阅读(1572)  评论(0编辑  收藏  举报