python OSX 10.10.5中库libxml2.2.dylib的版本不兼容

时间:2015-09-30 23:24:27

标签: python macos osx-yosemite anaconda

我试图在成功安装后使用louvain python库。但是,当我尝试加载它时,解释器说

>>> import louvain
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/user/anaconda/lib/python2.7/site-packages/louvain/__init__.py", line 108, in <module>
    from .functions import find_partition
  File "/Users/user/anaconda/lib/python2.7/site-packages/louvain/functions.py", line 2, in <module>
    from . import _c_louvain
ImportError: dlopen(/Users/user/anaconda/lib/python2.7/site-packages/louvain/_c_louvain.so, 2): Library not loaded: libxml2.2.dylib
  Referenced from: /Users/user/anaconda/lib/python2.7/site-packages/louvain/_c_louvain.so
  Reason: Incompatible library version: _c_louvain.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

我在本期lxlm run time error中找到了类似的帖子。但是,当我绑定建议的解决方案(即强制安装libxml2)conda install -f libxml2时,它安装它但我无法加载louvain库。基本上,它会产生相同的错误。我有Python 2.7.10 |Anaconda 2.1.0 (x86_64)| (default, Sep 15 2015, 14:29:08)版本。你有什么建议吗?提前谢谢。

0 个答案:

没有答案