在Windows 7上安装Python MySQLdb时出错

前端之家收集整理的这篇文章主要介绍了在Windows 7上安装Python MySQLdb时出错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
请看下面的stacktrace,这是权限问题吗?

C:\Project\MysqL-python-1.2.3>python setup.py
Traceback (most recent call last):
  File "setup.py",line 15,in <module>
    Metadata,options = get_config()
  File "C:\Project\MysqL-python-1.2.3\setup_windows.py",line 7,in get_config
    serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified

C:\Project\MysqL-python-1.2.3>

Python版本是(ActiveState)2.7.1

解决方法

MysqL是一个先决条件,如MysqLDb的README中所述

猜你在找的Windows相关文章