I tried to install the Python image library pillow on my Mac, but it didn't work with the following error.
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: command 'cc' failed with exit status 1
When I googling, it seems that there are many people who get the same error on OSX 10.9.
For the time being, I looked here and solved it, so I made a note immediately. http://stackoverflow.com/questions/22334776/installing-pillow-pil-on-mavericks
Command typed ↓
sudo bash
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
pip install pillow
I'm not sure, but it worked after I passed about two passes.
Recommended Posts