请参阅下面的堆栈跟踪,这是一个权限问题吗?在Windows 7上安装Python MySQLdb错误
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? – 2011-04-15 15:13:41