ImportError with Flask

July 20, 2017 10.8k views
Python Frameworks

Currently experiencing this on Linux CentOS using Py 3.5 venv

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

Any tips or hints?

2 Answers

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

$ pip install flask
Have another answer? Share your knowledge.