1) Add mysql bin files to path (so mysql_config can be found)
export PATH=/usr/local/mysql/bin/:$PATH2) Create env var to shared library (so libmysqlclient.18.dylib can be found)
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/3) Install the python module using pip
pip install mysql-python
to make these changes permanent add them to ~/.profile
If you are using virtualenv in python you may also need to add the DYLD_LIBRARY_PATH to in the activate script found under the bin folder of the virtual env.