Skip to content

Instantly share code, notes, and snippets.

@angaither
Last active August 29, 2015 14:01
Show Gist options
  • Save angaither/6004db46ef771c6fd80a to your computer and use it in GitHub Desktop.
Save angaither/6004db46ef771c6fd80a to your computer and use it in GitHub Desktop.
To get python + flask + mysql working Mac OSx 10.9

inside flask app

pip install flask

Then

sudo su
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
pip install MySQL-python

Make a symlink

cd /usr/local
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment