Flask, Babel and python - ImportError: No module named babel Flask, Babel and python - ImportError: No module named babel flask flask

Flask, Babel and python - ImportError: No module named babel


Change this

from flaskext.babel import Babel

to

from flask.ext.babel import Babel

Note the . before and after 'ext'. The syntax you are using is the old methodology of importing flask extensions. But for the past few versions, flask made it a standard way of importing extensions. Read the last paragraph here


Try this

from flask_babel import Babel 

I think it follows the convention that when the installation name is separated by a -, then imports can be done when replaced by an underscore