2
我遇到這些錯誤經常當我安裝Python庫,我想知道我在做什麼錯導入錯誤:找不到庫
當前例子是libchromaprint庫 http://acoustid.org/chromaprint 我安裝它和一切,嘗試運行Python的例子,得到:
Traceback (most recent call last):
File "examples/fpwav.py", line 7, in <module>
import chromaprint
File "build/bdist.linux-x86_64/egg/chromaprint/__init__.py", line 24, in <module>
ImportError: couldn't find libchromaprint
,然後當我檢查:
find /usr/local/lib/libch*
/usr/local/lib/libchromaprint.so
/usr/local/lib/libchromaprint.so.0
/usr/local/lib/libchromaprint.so.0.1.3
我做錯了什麼?
有人建議這樣做:export LD_LIBRARY_PATH =/usr/local/lib,它工作。不管怎樣,謝謝你! – pyeleven
這也適用,謝謝 – pyeleven