2010-12-07 257 views
0

我想在Windows 7上安裝MySQLdb的模塊,Python,但我得到一個錯誤安裝MySQLdb的Python模塊

G:\python\python and mysql\MySQL-python-1.2.3b2\MySQL-python-1.2.3b2>setup.py 
Traceback (most recent call last): 
    File "G:\python\python and mysql\MySQL-python-1.2.3b2\MySQL-python-1.2.3b2\set 
up.py", line 15, in <module> 
    metadata, options = get_config() 
    File "G:\python\python and mysql\MySQL-python-1.2.3b2\MySQL-python-1.2.3b2\set 
up_windows.py", line 7, in get_config 
    serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_ke 
y']) 
WindowsError: [Error 2] 

G:\python\python and mysql\MySQL-python-1.2.3b2\MySQL-python-1.2.3b2> 

回答

0

This thread意味着問題是,你需要的MySQL安裝在系統上您要使用的客戶端庫,即使您不在同一個系統上使用服務器。