ImportError: No module named flask ImportError: No module named flask flask flask

ImportError: No module named flask


Please make sure you have activated virtual environment before running python file.

. venv/bin/activate


try this command in the terminal instead of selecting 'run code':

 python3 'insert your file name here without the quotes'


check this stack answer, only instead of pika you have to type flask:

python no module name pika when importing pika