Trying to install MySQL-python-1.2.3 but I get an error

Here tis the error I get when trying to install MySQL-python-1.2.3. any idea?

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

Trying to install this on Python 2.7 on a Windows XP machine.

+3
source share
2 answers

Please take a look at this page: http://www.lfd.uci.edu/~gohlke/pythonlibs/ and find "MySQL-python". You will find some pre-compiled MySQL-python packages for Windows. Perhaps one of them will be fine for you.

Using one of them (for Windows 7) was the only way to get MySQL python to work on Windows.

+8
source

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


All Articles