2009-11-26 10 views
7

He descargado MySQLdb, y mientras lo instala estoy recibiendo errores como:Como instalar conector de 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 

¿Qué puedo hacer yo para hacer frente a esto?

+1

¿qué versión de pitón? 2.6? – YOU

Respuesta

0

Necesitas encender regedit y hacer

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

para que se vea como HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath\InstallGroup.

+0

¿Realmente funciona? –

+0

hizo por mí. Es 'regedit', entonces YMMV. – Leopd

Cuestiones relacionadas