0

I downloaded MySQL-python-1.2.3.tar.gz, unzipped and untarred it, and ran sudo python setup.py build. I get this error:

Traceback (most recent call last):
  File "setup.py", line 15, in <module>
    metadata, options = get_config()
  File "/Users/me/sources/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config
    libs = mysql_config("libs_r")
  File "/Users/me/sources/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config
    raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found

A search for mysql_config on my computer with find / -name mysql_config found no matches. I'm Using Mac OS X 10.7.2, with Python 2.7.1 installed.

3
  • Do you have MySQL installed on your machine? Looks like what you're trying to install is just a MySQL API for Python. Commented Dec 28, 2011 at 19:59
  • Ah, makes sense. I thought mysql-python would install python too. Can you post what you said as an answer so I can mark it right? Commented Dec 28, 2011 at 20:04
  • I'd really recommend using easy_install for installing Python modules. Ships with OS X and you can simply use easy_install MySQL-python Commented Dec 28, 2011 at 20:05

1 Answer 1

3

Looks like what you're trying to install is just a MySQL API for Python. You should install MySQL on your system first and then this library.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.