Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 274
axmed Avatar asked Jul 19 '19 14:07

axmed


1 Answers

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.

like image 67
davidism Avatar answered Oct 28 '22 01:10

davidism