我试着:
easy_install lxml
我得到这个错误:
文件“build/bdist.macosx-10.3-fat/egg/setuptools/command/build_ext.py”,第 85 行,在 get_ext_filename KeyError: 'etree'
任何提示?
我试着:
easy_install lxml
我得到这个错误:
文件“build/bdist.macosx-10.3-fat/egg/setuptools/command/build_ext.py”,第 85 行,在 get_ext_filename KeyError: 'etree'
任何提示?
由于 2.6.3 版本的 python 的 distutils 中的不兼容更改,旧easy_install
的setuptools不再有效。您需要将其替换为easy_install
from Distribute。按照那里的说明进行操作,基本上:
$ curl -O http://nightly.ziade.org/distribute_setup.py
$ python distribute_setup.py
假设 2.6.3python
首先在您的$PATH
.
编辑:除了从 setuptools 迁移到 Distribute 的选项外,应该在几周内发布的 Python 2.6.4 将包含distutils 中的解决方法,该解决方法将破坏 setuptools。感谢 Tarek 的修复,感谢 jbastos 提出这个问题。
进一步编辑:setuptools本身已经更新(从 开始0.6c10
)以解决 2.6.3 的问题。
内德:
python的distutil 2.6.3版本的不兼容变化
不准确。API 没有改变,但 Setuptools 覆盖了它们,并假设它们是按特定顺序调用的。
伦纳特:
分布式安装似乎没有触发错误
Yes indeed, this precise bug was detected some time ago and fixed in Distribute (and in Ubuntu's setuptools package)