Windows下安装mysql模块

ImportError: No module named MySQLdb

windows下运行python程序时,提示以上错误,说明没有安装mysql模块,只需运行pip install mysql-python安装即可。

error: INCLUDE environment variable is empty或’Cannot open include file: ‘config-win.h”

安装MySQL-python-1.2.3.win-amd64-py2.7.exe,注:注意区分是安装32位的还是64位的,本人安装的python与mysql均是64位的,所以安装64位即可。

猜你喜欢

转载自blog.csdn.net/s634772208/article/details/78944251
今日推荐