gpt4 book ai didi

python - lxml 运行时错误 : Reason: Incompatible library version: etree. 所以需要版本 12.0.0 或更高版本,但 libxml2.2.dylib 提供版本 10.0.0

转载 作者:IT老高 更新时间:2023-10-28 21:40:43 25 4
gpt4 key购买 nike

我有一个令人困惑的问题。我用过mac版本10.9,anaconda 3.4.1,python 2.7.6。

使用 python-amazon-product-api 开发 Web 应用程序。我已经克服了安装 lxml 的障碍,引用 clang error: unknown argument: '-mno-fused-madd' (python package installation failure) .

但是发生了另一个运行时错误。这是网络浏览器的输出。

Exception Type: ImportError
Exception Value:
dlopen(/Users/User_Name/Documents/App_Name/lib/python2.7/site-packages/lxml/etree.so, 2): Library not loaded: libxml2.2.dylib
Referenced from: /Users/User_Name/Documents/App_Name/lib/python2.7/site-packages/lxml/etree.so
Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

不确定如何继续并已在此处和其他地方搜索此特定错误。非常感谢任何帮助!

最佳答案

这对我有用:

brew install libxml2
brew install libxslt
brew link libxml2 --force
brew link libxslt --force

关于python - lxml 运行时错误 : Reason: Incompatible library version: etree. 所以需要版本 12.0.0 或更高版本,但 libxml2.2.dylib 提供版本 10.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23172384/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com