Can't install PIL after Mac OS X 10.9

前端 未结 28 1067
长情又很酷
长情又很酷 2020-11-28 17:41

I\'ve just updated my Mac OS to 10.9 and I discovered that some (all?) of my Python modules are not here anymore, especially the Image one.

So I try to execute

28条回答
  •  暖寄归人
    2020-11-28 18:18

    Non of those worked for me.. I kept receiving:

    clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
    clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
    error: command 'cc' failed with exit status 1
    

    So I found a work around with the following solution:

    sudo export CFLAGS=-Qunused-arguments
    sudo export CPPFLAGS=-Qunused-arguments
    sudo pip install PIL --allow-external PIL --allow-unverified PIL
    

    This way I was able to install.

提交回复
热议问题