之前成功运行过程序,过了几天之后再次运行时就报了这个错误:
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()
- Serving Flask app “flask_run” (lazy loading)
- Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
- Debug mode: on
Traceback (most recent call last):
File “flask_run.py”, line 311, in
app.run(host=“192.168.2.101”, port=90, debug=True)
File “/home/tangji/.local/lib/python3.6/site-packages/flask/app.py”, line 990, in run
run_simple(host, port, self, **options)
File “/home/tangji/.local/lib/python3.6/site-packages/werkzeug/serving.py”, line 1030, in run_simple
s.bind(server_address)
OSError: [Errno 99] Cannot assign requested address
请问该如何解决?