1

I'm attempting to install pillow via pip (i.e. sudo pip install pillow) but without much success.

Can anyone tell me what the problem is?
Here are the errors I receive:

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 'clang' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-l7hSHg-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/pillow
Wilhelm
  • 1,407
  • 5
  • 16
  • 32
  • possible duplicate of [clang error: unknown argument: '-mno-fused-madd' (python package installation failure)](http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa) – Yuval Adam Apr 10 '14 at 13:06

1 Answers1

0

try with

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pillow

you will see a lot of warnings but it worked for me.

the unused arguments was preventing further install of pillow. the above tells it to not treat the unused argument as an error.

Source: a/22774631/1142814

EDIT: I link here the official issue you linked in your comment, maybe it can be helpful for someone else: https://github.com/python-imaging/Pillow/issues/527

Community
  • 1
  • 1
dnlcrl
  • 5,022
  • 3
  • 32
  • 40
  • 1
    Thank you sir. I found [this](https://github.com/python-imaging/Pillow/issues/527) helpful as well. – Wilhelm Apr 12 '14 at 20:37