Install Python Mysql Module

I just installed python 2.6 on my win7 computer. Now I tried installing mysqldb. But when you run "python setup.py install"

 C:\MySQL-python-1.2.3c1>python setup.py install
 Traceback (most recent call last):
   File "setup.py", line 15, in <module>
     metadata, options = get_config()
   File "C:\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] Das System kann die angegebene Datei nicht finden
 (System cannot find the given file)

But which file? Thank you for your help!

+3
source share
2 answers

I compiled MySQLdb 1.2.3c1 once with python26, you can find it here

+4
source

Do you work in command line admin mode? Also, do you have any MySQL headers available for the compiler to reference?

, , , MySQLdb, Windows - . , 2.6, . . .

+1

Source: https://habr.com/ru/post/1728815/


All Articles