When I run flask run
on Windows, I get the following error
C:\Python37\python.exe: No module named C:\Python37\Scripts\flask
This was working previously, the issue started after I created a new env recently.
This is a bug introduced in Werkzeug 0.15.5. Until 0.15.6 is released, you can run with python -m flask run
instead to work around it.
来源:https://stackoverflow.com/questions/57114348/flask-reloader-crashes-with-no-module-named-scripts-flask-on-windows