Issue
I am new to python and started with learning with spyder IDE. I was trying to run flask application in spyder but looks like I am making some mistakes while running it. Can anyone help me ?
If you see the above image... When I run app.py, i get error message as "No module names flask". But when I see flask version , i get 2.2.2 (meaning flask is already there). Then why I am getting this error?
I already installed flask in terminal
Solution
I guess you have several versions of Python
First try this :
Comment lines 9 and 10
Create a new terminal in the path of the file and type this:
flask run
If this does not work, you can create a virtual environment in Python and install Flask in it
Answered By - FatemeZamanian
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.