python - 安装 Pillow,获取 -Wunused-command-line-argument-hard-error-in-future

标签 python django mezzanine python-imaging-library

我无法安装枕头。

(env)noah:cupalensic2 broinjc$ which cc
/usr/bin/cc
(env)noah:cupalensic2 broinjc$ cc --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

我运行了 pip install mezzanine 并且当它到达令人满意的枕头时它搞砸了......

cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -arch x86_64 -DHAVE_LIBZ -I/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers -I/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/opt/X11/include/freetype2 -I/Users/broinjc/cupalensic2/env/build/pillow/libImaging -I/Users/broinjc/cupalensic2/env/include -I/usr/local/include -I/opt/X11/include -I/usr/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.9-intel-2.7/_imaging.o

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

----------------------------------------
Cleaning up...
Command /Users/broinjc/cupalensic2/env/bin/python -c "import setuptools;__file__='/Users/broinjc/cupalensic2/env/build/pillow/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/lg/y_cwnrnd3rn4x_j1sbd1mg_h0000gn/T/pip-o0HQHe-record/install-record.txt --single-version-externally-managed --install-headers /Users/broinjc/cupalensic2/env/include/site/python2.7 failed with error code 1 in /Users/broinjc/cupalensic2/env/build/pillow
Storing complete log in /Users/broinjc/.pip/pip.log

知道这里会发生什么吗?

最佳答案

这是 OSX 和最近 Xcode 升级的一个已知问题。

如何避免此问题的说明如下:

Ansible Installation -clang: error: unknown argument: '-mno-fused-madd'

这应该可以解决问题::

  ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install Pillow

关于python - 安装 Pillow,获取 -Wunused-command-line-argument-hard-error-in-future,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23144307/

相关文章:

python - 如何使用pygame图形库中的多边形制作菱形

python - Django,Mezzanine : Autodiscover error, 引用不存在的模型

django - 夹层Pagedown嵌入YouTube视频

python - 如何删除未应用的迁移?

Django celery 页面给出 404

python - Django + Mezzanine 中的翻译问题

python - 不同包中的 SQLAlchemy InvalidRequestError

python - python中的API调用没有结果

python - 在 Python 中创建大型 MultiIndex(1000 万行)的问题 Pandas 用于重新索引大型 DataFrame

python - 不正确的值 - 在 Django 中建模的 python