ImportError:dlopen(/Library/Python/2.7/site-packages/lxml/etree.so,2):未加载库:@rpath / libxslt.1.dylib

时间:2017-06-08 06:21:26

标签: python macos python-2.7

当我使用from lxml import etree时,它会发生

ImportError: dlopen(/Library/Python/2.7/site-packages/lxml/etree.so, 2): Library not loaded: @rpath/libxslt.1.dylib Referenced from: /Library/Python/2.7/site-packages/lxml/etree.so Reason: image not found

我已经pip install lxmlbrew install libxml2 brew install libxslt

我几乎在Cannot install Lxml on Mac os x 10.9

中尝试各种方式

我的os是sierra 10.12.4。

1 个答案:

答案 0 :(得分:0)

使用安装:

easy_install lxml