LoginSignup
2
2

More than 5 years have passed since last update.

Mac OSX10.9 で pillow をインストールする

Posted at

自分のMacにPythonの画像ライブラリであるpillowをインストールしようしましたが下記エラーが出てうまくいってくれませんでした。

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

Googlingすると、どうやらOSX10.9では同様のエラーが出てる人が多いみたいです。

とりあえず自分はここをみて解決したので早急にメモ。
http://stackoverflow.com/questions/22334776/installing-pillow-pil-on-mavericks

打ち込んだコマンド↓

sudo bash
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
pip install pillow

よくわかりませんが何やら2つぐらいパスを通したらうまくいきました。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2