I am trying to follow the flask documentation on my windows machine given at the following link: http://flask.pocoo.org/docs/0.11/quickstart/#debug-mode
Firstly I wrote
Did you run your terminal as administrator? I had the same problem, and running cmd/PowerShell as admin fixed it for me.
Edit: I spoke too soon. Running as admin did nothing.
The real answer (to my problem, at least) is a combination of some of the other answers.
set FLASK_APP = myApp.py
, use setx FLASK_APP myApp.py