【发布时间】:2014-04-30 15:01:38
【问题描述】:
最新的 pip 1.5 和 Xcode 5.1 使得在 virtualenv 中安装 PIL 变得很困难。 我搜索了各种解决方案,看来我必须执行这两行:
export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"
pip install PIL --allow-external PIL --allow-unverified PIL
但是我仍然遇到异常,我不知道为什么。我在另一台机器上的同事对此没有任何问题。
我已经使用命令行工具安装了 Python 和最新的 Xcode。也许后者已损坏?
clang: warning: 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
clang: warning: argument unused during compilation: '-mno-fused-madd'
In file included from _imaging.c:75:
In file included from /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:19:
In file included from /usr/bin/../lib/clang/5.1/include/limits.h:38:
/usr/include/limits.h:63:10: fatal error: 'sys/cdefs.h' file not found
#include <sys/cdefs.h>
^
1 error generated.
error: command 'clang' failed with exit status 1
【问题讨论】:
标签: python xcode macos clang python-imaging-library