Help us understand the problem. What is going on with this article?

Flask実行時にPYTHONPATHが見つからない

More than 1 year has passed since last update.

flask run --host=0.0.0.0をしたらエラーが出た。

NoAppException: The file/path provided (app.py) does not appear to exist.  Please verify the path is correct.  If app is not on PYTHONPATH, ensure the extension is .py

flaskコマンドではなくpythonから呼び出したら普通に動いた...
flaskのpythonが2.7系で、python3.5系だったのが問題だと思う。

python app.py
4geru
エンジニア初心者です。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away