請參閱下面的堆棧跟蹤,這是一個權限問題嗎?在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