Installing PIL on OS X Snow Leopard w/Xcode4 (no PPC support)

前端 未结 4 1578
借酒劲吻你
借酒劲吻你 2020-12-23 10:58

Xcode4 dropped PPC support, so when I try building PIL, it throws hate:

Bens-MacBook-Air:Imaging-1.1.7 bkeating$ python setup.py build
running buildrunning b         


        
4条回答
  •  有刺的猬
    2020-12-23 11:27

    ARCHFLAGS doesn't seem to get passed into sudo. I had to do

    sudo -s
    

    then ARCHFLAGS="-arch i386 -arch x86_64" pip install PIL to make it work.

提交回复
热议问题