所以,我发现其他一些铿锵错误似乎有些类似,但是,修复不适用于我的情况.
我正在使用OSX Mavericks,我们正在尝试安装Ansible.我有点正确安装,但是当我尝试安装Ansible时,我得到了这个clang错误.我们首先想到它可能是一个版本问题,所以我在使用gcc49遇到同样的错误后重新安装了gcc46,但我仍然遇到错误.
有谁知道如何解决这一问题?
来自pip.log日志文件的完整错误报告如下:
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -Wall -Wstrict-prototypes -Wshorten-64-to-32 -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/MD2.c -o build/temp.macosx-10.9-intel-2.7/src/MD2.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...
Removing temporary dir /private/tmp/pip_build_root...
Command …Run Code Online (Sandbox Code Playgroud) 这是我用来安装lxml的命令:
sudo pip install lxml
Run Code Online (Sandbox Code Playgroud)
我在清理阶段收到以下消息:
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-rUFjFN-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/lxml
Storing debug log for failure in /Users/georgejor/Library/Logs/pip.log
Run Code Online (Sandbox Code Playgroud)
在那之后,我得到了:
ImportError: No module named lxml
Run Code Online (Sandbox Code Playgroud)
请帮忙.谢谢!
以下输出来自pip.log:
----------------------------------------
Cleaning up...
Removing temporary dir /private/tmp/pip_build_root...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-rUFjFN-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/lxml
Exception information:
Traceback (most …Run Code Online (Sandbox Code Playgroud)