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 flask
I don't think the 'flask run' command is the one which causes the error here.
I got the same message error and the problem came from the fact I copied/pasted the set FLASK_APP
and $env: FLASK_APP
commands as written in the documentation. I had to add spaces before and after '>' or '=', and then everything worked.
Example: this command didn't work 'C:\path\to\app>set FLASK_APP=hello.py'
, but this one did 'C:\path\to\app > set FLASK_APP = hello.py'
.
Maybe it's the same problem you have?