Flask reloader crashes with “no module named Scripts\flask” on Windows

强颜欢笑 提交于 2019-11-26 01:08:53

问题


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.


回答1:


This was a bug introduced in Werkzeug 0.15.5. Upgrade to at least Werkzeug 0.15.6, which contains the fix. You can also 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!