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

前端 未结 4 1624
借酒劲吻你
借酒劲吻你 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:28

    A better way to solve this issue, in my opinion, would be to edit your ~/.profile or /etc/bashrc and add the line:

    export ARCHFLAGS="-arch i386 -arch x86_64"
    

    Will save messing around with any future installations (I've just had to do this for installing lots of Perl modules in CPAN)!

提交回复
热议问题