It seems like OSX 10.9 is a bit more complicated. Here is some additional material that I made:
brew install libffi
If you see a warning about how he installed "only keg", it means that the homebrew did not bind it, so you need to provide additional information using export PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig . At this point, the installation explodes because by default OSX now dies from warning flags, so suppress this behavior as well:
export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments
Then you can install using pip .
source share