IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    [原]Python Version 2.7 required which was not found in the registry

    testcs_dn发表于 2016-06-02 07:34:14
    love 0

    在使用“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版本,发现是64位的,而下载的MySQL-python是32位的。

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






沪ICP备19023445号-2号
友情链接