安装lxml OSX Mavericks 10.9.2 [英] Installing lxml OSX Mavericks 10.9.2

查看:99
本文介绍了安装lxml OSX Mavericks 10.9.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在10.9.2 Mavericks上安装lxml,我使用了提到的所有解决方案

I am trying to install lxml on 10.9.2 Mavericks and i used all the solutions mentioned here before but i seem to get a different error, the argument '-mno-fused-madd' is unknown, i believe it just triggered a warning back then, but now it throws an error here's the log

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 -I/usr/include/libxml2 -I/Users/workspace/mybooktype/build/lxml/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.9-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 'cc' failed with exit status 1

更新1 我最初试图安装django应用 booktype ,所以按照我首先尝试的指示进行操作

UPDATE 1 i was originally trying to install the django app booktype so following the instructions i tried first

pip install lxml --install-option="--with-xml2-config=/usr/local/Cellar/libxml2/2.8.0/bin/xml2-config"

推荐答案

因此,问题与C编译器无关,这与机器上使用的python版本有关,显然在python版本中存在冲突,全新的python全新安装解决了该问题,并提供了.bash_profile.然后我们使用原始命令

So the problem had nothing to do with the C compiler, it was in the python version used on the machine, apparently there was a conflict in python versions, a new clean installation of python solved the problem, and the .bash_profile. then we used the original command

pip install lxml

它已成功安装

这篇关于安装lxml OSX Mavericks 10.9.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆