Python Can';t在OS X 10.8.5上安装lxml

Python Can';t在OS X 10.8.5上安装lxml,python,macos,lxml,libxml2,malware,Python,Macos,Lxml,Libxml2,Malware,我试图通过使用布谷鸟沙盒和在VirtualBox上运行的VM机器(WinXP)来进行恶意软件分析。但是,我无法让布谷鸟运行,因为我没有正确安装cybox和maec 因此导致我无法安装lxml的问题。 它只是不允许我使用pip或手动安装setup.py文件进行安装。 以下是我得到的: Building lxml version 3.4.1. Building without Cython. Using build configuration of libxslt 1.1.26 /System/Li

我试图通过使用布谷鸟沙盒和在VirtualBox上运行的VM机器(WinXP)来进行恶意软件分析。但是,我无法让布谷鸟运行,因为我没有正确安装cybox和maec

因此导致我无法安装lxml的问题。 它只是不允许我使用pip或手动安装setup.py文件进行安装。 以下是我得到的:

Building lxml version 3.4.1.
Building without Cython.
Using build configuration of libxslt 1.1.26
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
  warnings.warn(msg)
running install
running bdist_egg
running egg_info
writing requirements to src/lxml.egg-info/requires.txt
writing src/lxml.egg-info/PKG-INFO
writing top-level names to src/lxml.egg-info/top_level.txt
writing dependency_links to src/lxml.egg-info/dependency_links.txt
reading manifest file 'src/lxml.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/lxml.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.8-intel/egg
running install_lib
running build_py
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.8-intel-2.7/lxml/includes
running build_ext
building 'lxml.etree' extension
clang -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 -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/usr/include/libxml2 -I/Users/ajprameswari/Downloads/lxml-3.4.1/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.8-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
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 'clang' failed with exit status 1
我尝试了lxml-3.4.0和lxml-3.4.1两个版本,但结果相同。
我正在使用Python2.7和OSX10.8.5。有什么可以帮助我解决这个问题吗?我是一个使用OSX的新手,我曾经在我的Ubuntu上工作,但由于我的Ubuntu机器缺乏规范,我需要在这里工作

Xcode 5.1中的Apple LLVM编译器将无法识别的命令行选项视为错误。在构建Python本机扩展时就发现了这个问题,其中指定了一些无效的编译器选项

在警告方面,llvm编译器的较新版本似乎更具限制性

修复: 有一种临时解决方案,通过设置以下环境变量来告诉编译器不要引发此错误:

sudo -E export CFLAGS=-Qunused-arguments
sudo -E export CPPFLAGS=-Qunused-arguments

感谢您将此指向解决方案!对不起,如果这是双人的话