mysql_config not found osx

This post was written 5 years ago.
Sat, 03 Dec 2011
This always gets me when I try to install mysql-python on osx using pip:-

$pip install mysql-python

(ugly traceback, ending in:-)

EnvironmentError: mysql_config not found

Googling round finds that most people suggest editing a line in MySQL-python/site.cfg (wherever that is..), but my preferred solution is add the following line to my .profile:-

export PATH=$PATH:/usr/local/mysql/bin

This works for me - for a mysql installed from a package on
This post was written 5 years ago, which in internet time is really, really old. This means that what is written above, and the links contained within, may now be obsolete, inaccurate or wildly out of context, so please bear that in mind :)
Tags: python / mysql / pip /