之前成功运行过程序,过了几天之后再次运行时就报了这个错误:
sudo python3 flask_run.py
flask_run.py:11: 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.util (/home/tangji/.local/lib/python3.6/site-packages/urllib3/util/init.py)’, ‘urllib3.util.ssl_ (/home/tangji/.local/lib/python3.6/site-packages/urllib3/util/ssl_.py)’].
monkey.patch_all()
理论知识与实战项目双管齐下,让AI技术不再脱离实际,做到真正的落地应用。适合毕设展示。
了解课程