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

 

 

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

 

相关文章:

  • 2021-11-27
  • 2021-11-19
  • 2021-12-21
  • 2022-12-23
  • 2021-05-08
  • 2021-06-29
  • 2021-05-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-06-23
  • 2021-09-24
  • 2022-12-23
相关资源
相似解决方案