I get the following error when attempting to install psycopg2 via pip on Mavericks 10.9:
psycopg2
clang: error: unknown argument: \'-mno-fused-madd\' [-W
Upgrading Homebrew and installing unixodbc solved it for me
brew upgrade brew install unixodbc