title: How to setup environment variables for `flask run` on Windows?
body: <p>I just started learning flask and I am stuck at setting up the Flask environment variables. I don't know how to setup the environment variables. Whenever I use the <code>flask run</code> command, I encounter the following error:</p>
  <blockquote>
  <p>Error message : Could not locate a Flask application. You did not provide the &quot;FLASK_APP&quot; environment variable, and a &quot;wsgi.py&quot; or &quot;app.py&quot; module was not found in the current directory.</p>
  </blockquote>
  <p>I did a lot of google searches to setup environment variables on Windows but I am unable to find a solution and sometimes I am not able to understand the solution.</p>
  <p>How to do this ? How to get the &quot;app.py&quot; or &quot;wsgi.py&quot; ?</p>
  <p><a href="https://i.stack.imgur.com/jxAYl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jxAYl.png" alt="error message" /></a></p>