No module named flaskext

I am trying to deploy python-flask app through However, it gives me an error saying No module named flaskext.mysql even though it worked when I tested with localhost.

from flask import Flask, render_template, json, request,redirect,session
from flaskext.mysql import MySQL
from werkzeug import generate_password_hash, check_password_hash

mysql = MySQL()
app = Flask(__name__)
app.secret_key = 'why would I tell you my secret key?'

I of course installed pip install flask and pip install flask-mysql and from flask_mysql import MySQL. I tried all that I can T.T I am using python3.4. I can't find the reason..Please help help!

Does this help?

No it didn't. I still couldn't figure out why it happens.

I tried with flask_mysqldb after install flask-mysql. However, it also doesn't work saying no module named flask_mysqldb. So, in my case flaskext.mysql, flask_mysql, flask_mysqldb don't work at all on both python2.7 and 3.4.

Can you give more details like how you did the installation? eg: did you do it using the --user flag? or did you try to install into a virtualenv? what was the exact command that you used?