Hi I am trying to run a python file that has :
from flask import Flask, render_template, json, request from flask.ext.mysql import MySQL from werkzeug import
I was facing the same error. First I installed flask-MySQL
pip install flask-mysql
Then added below-line in app.py file
from flaskext.mysql import MySQL
It worked.