0

I have installed leptonica and tesseract in $HOME/local and tesseract is working properly, then tesserocr python package with:

CPPFLAGS="-I/home/user/local/include /home/user/local/lib" pip install tesserocr

and when I want to invoke it I get this:

$ 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

please help

quester
  • 534
  • 5
  • 18

1 Answers1

0

As mentioned in my comment on the original post, the proper installation command should be:

CPPFLAGS="-I/home/user/local/include -L/home/user/local/lib" pip install tesserocr
sirfz
  • 4,097
  • 23
  • 37