tesserocr
tesserocr copied to clipboard
error while installing on bitbucket
I got the following error while installing tesserocr on bitbucket repository. Any help in this regard is highly appreciated.
Running setup.py install for tesserocr: started Running setup.py install for tesserocr: finished with status 'error' Complete output from command /usr/local/bin/python3.5 -u -c "import setuptools, tokenize;file='/tmp/pip-install-ccu1ea3y/tesserocr/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-uyo_chrq/install-record.txt --single-version-externally-managed --compile: 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" Failed to extract tesseract version from executable: [Errno 2] No such file or directory: 'tesseract' Supporting tesseract v3.04.00 Building with configs: {'cython_compile_time_env': {'TESSERACT_VERSION': 197632}, 'libraries': ['tesseract', 'lept']} running install running build running build_ext building 'tesserocr' extension creating build creating build/temp.linux-x86_64-3.5 gcc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python3.5m -c tesserocr.cpp -o build/temp.linux-x86_64-3.5/tesserocr.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ tesserocr.cpp:597:34: fatal error: leptonica/allheaders.h: No such file or directory #include "leptonica/allheaders.h" ^ compilation terminated. error: command 'gcc' failed with exit status 1
#include "leptonica/allheaders.h" ^
leptonica seems to be missing. Make sure you have all requirements met