pip install Pymysql 修改app里面的__init__.py import pymysqlpymysql.install_as_MySQLdb() 转载于:https://www.cnblogs.com/lixingli/p/6956999.html