ImportError: No module named flask.ext.mysql

后端 未结 8 1822
春和景丽
春和景丽 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:52

    It seems like a virtualenv config problem you should get rid of old virtualenv and make a new one like this

    virtualenv yournewvirtualenv --python=/usr/bin/python3.4
    

    This is the link I referenced: https://www.pythonanywhere.com/forums/topic/2877/

提交回复
热议问题