当我使用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 lxml
和brew install libxml2
brew install libxslt
我几乎在Cannot install Lxml on Mac os x 10.9
中尝试各种方式我的os是sierra 10.12.4。
答案 0 :(得分:0)
使用安装:
easy_install lxml