Installing Pillow/PIL on Mavericks

前端 未结 5 872
难免孤独
难免孤独 2020-12-08 11:03

I\'m getting a strange error when trying to install Pillow using pip/easy_install:

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -O         


        
5条回答
  •  时光取名叫无心
    2020-12-08 11:52

    In addition to @jussi, I had to open terminal and do the following:

        sudo bash
        export CFLAGS=-Qunused-arguments
        export CPPFLAGS=-Qunused-arguments
    

    Only then could properly run 'pip install pillow'

    If I didn't run this using a superuser prompt, I would get the following error:

        error: could not create '/Library/Python/2.7/site-packages/PIL': Permission denied
    

    I'm running OSX 10.9.2 with the March 2014 Command Line Tools installed. I also have Homebrew installed if that makes a difference.

提交回复
热议问题