ImportError: No module named flask.ext.mysql

后端 未结 8 1823
春和景丽
春和景丽 2020-12-31 00:16

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         


        
8条回答
  •  无人及你
    2020-12-31 00:45

    I had the same problem, so I installed flask-mysql using:

    $ pip install flask-mysql
    

    and the module name is flaskext.mysql

提交回复
热议问题