Forums

Flask Server Set up error: ModuleNotFoundError: No module named 'flask'

Hello, I keep getting this error (ModuleNotFoundError: No module named 'flask') while attempting to set up my flask website. It seems to be upset at this line: from flask import Flask

When I go into the console and type flask --version I get: (myvirtualenv) 19:38 ~/IrrigationDevice (main)$ flask --version Python 3.10.5 Flask 2.2.2

This leads me to believe that I have it installed correctly so I do not understand how to solve this issue.

Is your web app set to use that virtual environment?