【发布时间】:2014-04-15 14:22:45
【问题描述】:
我在尝试使用 pip/easy_install 安装 Pillow 时遇到一个奇怪的错误:
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -arch x86_64 -arch i386 -pipe -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers -I/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/Cellar/freetype/2.5.3/include/freetype2 -I/private/var/folders/c_/r7sp373509jdb6_1xmmzvl9c0000gn/T/pip_build_tills13/Pillow/libImaging -I/System/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/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
我已经阅读了所有符号链接的答案,我已经安装了命令行工具,但似乎没有任何效果。我总是遇到这个错误。
【问题讨论】:
-
@patsweet 我经过那里并尝试了所有的 cmets。
xcode-select --install甚至对我都不起作用 - “软件无法从更新服务器获得” -
你考虑过使用 MacPorts 吗?
-
很奇怪。您的路径设置是否包含命令行工具?另外,你是如何安装 Python 的。我刚刚安装了一台新的 MacBook Pro,并使用 Homebrew 安装了 Python 和其他各种工具,我强烈推荐它。
-
@patsweet 是的,我使用 Homebrew。我从 Apple 的开发者网站手动安装了命令行工具:developer.apple.com/downloads/…
标签: python python-imaging-library pip easy-install pillow