I face this problem when I want to install mysql-python on osx 10.8, it show error with \'my_config.h\' file not found.
Below is my running code:
sud
As mentioned before, you need the dev headers for MySQL, which don't come with MAMP by default. Rather than using two instances of MySQL, it's possible to add the headers to the MAMP version. There are good instructions for doing so here: http://dreamconception.com/tech/how-to-install-mysqldb-mysql-python-on-mamp/
Make sure not to just copy-paste all the commands, they're a bit out of date so you'll need to change the version numbers in some of them.
I'm using OS X 10.9 and python 2.7, and everything works.