Installing MySQL-python in virtualenv (OSX)
I found this cool script from http://www.macminivault.com. It will check and install mysql to your system. (you can check his blog from the link above)
Just run : bash <(curl -Ls http://git.io/eUx7rg) and the script will do the rest.
In addition:
when installing mysql-python package using pip install you may encounter the error: (EnvironmentError: mysql_config not found)
Just add the path on your bin/activate file
PATH="$PATH:/usr/local/mysql/bin/"
NOTE*: Usually, mysql_config is found on that directory but check yours and add the correct path. reactivate env so the new settings is applied.
that's all. awesome work http://www.macminivault.com.













