Closed samkit-jain closed 5 years ago
Installed tesseract using the PPA: https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr OS: Ubuntu 18.04.1 LTS
try installing pkg-config apt install pkg-config
before installing tesserocr.
Already have pkg-config
installed.
$ sudo apt install pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
pkg-config is already the newest version (0.29.1-0ubuntu2).
pkg-config failed to find tesseract/lept libraries: b"Package tesseract was not found in the pkg-config search path.\nPerhaps you should add the directory containing `tesseract.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'tesseract' found\n"
You also need to install libtesseract-dev and libleptonica-dev as specified in the requirements.
Installing libleptonica-dev
from the same PPA solved it. Thank you!
When doing
pip install tesserocr
: