here’s how I solved it.
first, go to the directory using your command prompt where your webapp for flask is located and then type these two commands.
here abc is your webapp for flask to run.
then simply run flask
hope this will help