I\'m trying to install Pillow following the instruction:
http://pillow.readthedocs.org/en/latest/installation.html#mac-os-x-installation
Th
Had this problem in Nov 2015. Easiest solution for me was to install a precompiled binary of pillow using wheels:
pip install wheel
pip install --use-wheel pillow
Install the command line tools:
Worked for me on mavericks
I confirm that following these steps I can install Pillow on Mavericks 10.9.2 with XCode 5
1:
brew install libtiff libjpeg webp littlecms
2: go to here https://pypi.python.org/pypi/Pillow/2.3.1 downalod the zip file and unzip it.
3: open a Terminal window and go to Pillow-2.3.1 folder in Terminal.
4: these two lines are extremely important because they will ignore the errors during installation of Pillow, without these two lines the setup cannot be finished (I am using python 2.7 so you may need to change whatever version you use):
sudo sed -i '' -e 's/-mno-fused-madd//g' /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.py
sudo rm /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.pyc
5: run command
sudo python setup.py install
Done!
Installing earlier version of Pillow worked for me
pip uninstall pillow
pip install Pillow==2.5.0
Boom Ya Baby!
running MacOSX 10.8.5 from PIL import Image
now throws no errors.
Follow these steps
xcode-select --install
su
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
pip install pillow
a friend told me how to fix this:
by https://github.com/moskytw