简体   繁体   中英

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

when I using from lxml import etree , it happens

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

I hava already pip install lxml and brew install libxml2 brew install libxslt

I almost try all ways in Cannot install Lxml on Mac os x 10.9

my os is sierra 10.12.4.

使用以下方法安装:

easy_install lxml 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM