Mysql-python on mac os 10.9.1

I cannot install mysql-python on 10.9.1. I suspect this is due to the latest updates to the command line tools, but I'm not an 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?

A similar error with pip.

+2
source share
2 answers

Fixed:

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

to `pip install ...` ``

+4
source

I just like improving your answer, which also helped me:

In MacShell, follow these steps:

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

Otherwise, these parameters will not be used.

Hooray!

+6
source

Source: https://habr.com/ru/post/1531463/


All Articles