Mysql-python不支持python3.5,所以需要使用pymysql代替 方法很简单,就是在int.py文件里增加以下两句: import pymysql pymysql.install_as_MySQLdb()