Installing Pillow/PIL on Mavericks

前端 未结 5 875
难免孤独
难免孤独 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:43

    None of these solutions worked for me. I finally got it installed with help from this post:

    I find the same issue trying to build MySQLdb with the latest Xcode and OS updates. Here is a work around that involves removing the flag from the python installation.

    In /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_sysconfigdata.py are several places where the -mno-fused-madd flag is set. If you edit this file and remove all of the references to that flag your compilation should work. You need to delete the corresponding _sysconfigdata.pyc file as well - at least on my system that file did not automatically get rebuilt. Note that have to use root access to make those changes.

提交回复
热议问题