安装完 mysql-pyhon 后 还是报错 这个时候可以安装 pymysql 同时在 __init__文件中加入 import pymysqlpymysql.install_as_MySQLdb() 相关文章: