Python Version 2.7 required which was not found in the registry

在使用“MySQLdb”操作MySQL数据库时,提示错误:ERR import MySQLdb ImportError: No module named MySQLdb,

然后去下载安装包“MySQL-python-1.2.5.win32-py2.7.exe”,但安装的时候提示:Python Version 2.7 required which was not found in the registry

Python Version 2.7 required which was not found in the registry_第1张图片

经过搜索发现是版本的问题,我查看自己安装的Python版本,发现是64位的,而下载的MySQL-python是32位的。

这个问题不需要纠结,直接去下载64位的安装包就OK了。

Python Version 2.7 required which was not found in the registry_第2张图片

Python Version 2.7 required which was not found in the registry_第3张图片

Python Version 2.7 required which was not found in the registry_第4张图片

你可能感兴趣的:(mysql,数据库,python,mysqldb,64位)