dev5
By:
dev5

ImportError with Flask

July 20, 2017 251 views
Python Frameworks

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?

2 Answers
hansen July 20, 2017
Accepted Answer

Hi @dev5

You might find better help with Python programming on StackOverflow:
https://stackoverflow.com/questions/31252791/flask-importerror-no-module-named-flask

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.