3

I've just installed python 2.6 on my win7 machine. Now I tried to install mysqldb. But when 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? Thanks for your help!

Daniel Roseman
602k68 gold badges911 silver badges924 bronze badges
asked Jan 17, 2010 at 14:15

2 Answers 2

4

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

answered Jan 30, 2010 at 5:22
Sign up to request clarification or add additional context in comments.

Comments

1

Are you running from an Administrator Mode command prompt? Also, do you have the MySQL headers available for the compiler to link against?

If you are just an end-user, you will probably find it easier to use a pre-built MySQLdb binary, as compiling in Windows is a pain. Unfortunately the official site still hasn't built against 2.6 yet, but you can download other people's builds. See this question for some links.

answered Jan 17, 2010 at 15:40

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.