qpython3安装lxml_如何在Mac OS X 10.7.4上安装lxml?我已经用尽了所有的选择

尝试了各种途径但没有运气。我用的是10.7.4的MBP。我不记得上次在我的Mac上安装Python有这么多问题。请帮助我在本地计算机上使用lxml,而不要依赖SVN提交、更新来在Linux计算机上远程运行。$ sudo STATIC_DEPS=true /usr/bin/easy_install-2.7 lxml

Password:

Searching for lxml

Reading http://pypi.python.org/simple/lxml/

Reading http://codespeak.net/lxml

Best match: lxml 2.3.4

Downloading http://lxml.de/files/lxml-2.3.4.tgz

Processing lxml-2.3.4.tgz

Running lxml-2.3.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mbyEtk/lxml-2.3.4/egg-dist-tmp-O_t_3P

Building lxml version 2.3.4.

Latest version of libiconv is 1.14

Downloading libiconv into libs/libiconv-1.14.tar.gz

error: [Errno 60] Operation timed out

尝试了下面的一个不走运

$ python setup.py build$ STATIC_DEPS=true sudo easy_install --allow-hosts=lxml.de,*.python.org lxml

$ sudo pip install lxml

llvm-gcc-4.2 -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 -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/usr/include/libxml2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.7-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace

unable to execute llvm-gcc-4.2: No such file or directory

error: command 'llvm-gcc-4.2' failed with exit status 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值