Currently experiencing this on Linux CentOS using Py 3.5 venv

File "/var/www/html/site-available/src/app.py", line 1, in <module>
from flask import Flask, render_template
ImportError: No module named flask

Any tips or hints?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Could you make sure you already have installed the flask module?
You can use a simple command like

$ pip install flask
Submit an Answer