2009-11-26 6 views
7

J'ai téléchargé mysqldb, et lors de l'installation, je reçois des erreurs comme:Comment installer connecteur mysql

 
C:\Documents and Settings\naresh\Desktop\MySQL-python-1.2.3c1>setup.py build 
Traceback (most recent call last): 
File "C:\Documents and Settings\naresh\Desktop\MySQL-python-1.2.3c1 
\setup.py",line15,  in 
metadata, options = get_config() 
File "C:\Documents and Settings\naresh\Desktop\MySQL-python-1.2.3c1 
\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 

Que puis-je faire pour résoudre ce problème?

+1

quelle version de python? 2.6? – YOU

Répondre

0

Vous devez tirer jusqu'à regedit et faire

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath et HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath\InstallGroup

pour ressembler à HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath\InstallGroup.

+0

Ça marche vraiment? –

+0

A fait pour moi. C'est "regedit", donc YMMV. – Leopd

Questions connexes