我已经在$HOME/local中安装了leptonica和tesseract,tesseract工作正常,然后tesserocr python包具有:
CPPFLAGS="-I/home/user/local/include /home/user/local/lib" pip install tesserocr
当我想调用它时,我会得到:
$ python3 extract.py
Traceback (most recent call last):
File "extract.py", line 4, in <module>
from tesserocr import PyTessBaseAPI, RIL, PyLTRResultIterator, iterate_level
ImportError: liblept.so.5: cannot open shared object file: No such file or directory
请帮忙
最佳答案
正如我在原帖评论中提到的,正确的安装命令应该是:
CPPFLAGS="-I/home/user/local/include -L/home/user/local/lib" pip install tesserocr
关于linux - 安装的tesserocr(python)看不到leptonica,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38815294/