pip install wheel去这个网站查找whl格式的MYSQL-pythonhttp://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python下载对应版本我的是 MySQL_python?1.2.5?cp27?none?win_amd64.whl在下载目录进入cmd(shift加右键),执行pip install MySQL_python?1.2.5?cp27?none?win_amd64.whl测试一下import MySQLdb大功告成python3.x pip install pymysql在应用主项目文件(__init.py)中:import pymysqlpymysql.install_as_MySQLdb() //手动指定将MySQLdb转给pymysql处理