Skip to content
Advertisement

No module named app , While running Flask app

I’m new to using flask, I tried to execute a basic flask app in Visual-Studio-code . but I’m getting,

No Module named app

My code is:

JavaScript

path :

Path

The output terminal:

JavaScript

Advertisement

Answer

The path of app.py was inside the virtual environment , thus it is not working. Moving it out of that folder woks.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement