Ben G
Ben G

Reputation: 26789

Trouble installing mysql-python

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.

Upvotes: 0

Views: 428

Answers (1)

Manny D
Manny D

Reputation: 20744

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.

Upvotes: 3

Related Questions