Installing Pillow with Mac OS X Mavericks (10.9.1)

前端 未结 6 1990
走了就别回头了
走了就别回头了 2020-12-20 21:25

I\'m trying to install Pillow following the instruction:

http://pillow.readthedocs.org/en/latest/installation.html#mac-os-x-installation

Th

6条回答
  •  失恋的感觉
    2020-12-20 21:59

    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!

提交回复
热议问题