pipmysql-pythoneasy-install

mysql-python on mac os 10.9.1


I can't seem to be able to install mysql-python on 10.9.1. I suspect it has something to do with latest command line tools update but I'm no expert:

Running MySQL-python-1.2.5/setup.py -q bdist_egg --dist-dir /var/folders/s7/j138zlt172nf6qqpn98rhzhm0000gn/T/easy_install-kq86vo/MySQL-python-1.2.5/egg-dist-tmp-edndmM
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: Setup script exited with error: command 'cc' failed with exit status 1

Any idea how to overcome this?

Same error with pip as well.


Solution

  • Fixed it by running:

    export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments

    before `pip install...```