How to install mysql connector

I downloaded mysqlDb and during installation I get errors such as:

 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

What can I do to solve this problem?

+7
python mysql
source share
2 answers

The registry key should be fixed in this file, kindly link to this thread

MySQL integration with Python on Windows

or download the finished binary

http://www.codegood.com/archives/4

+6
source share

You need to run regedit and do

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

to look like HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath\InstallGroup .

0
source share

All Articles