在我的linux系统上安装python-tesseract时遇到了问题。我一直在使用这个教程:http://delimitry.blogspot.be/2014/10/installing-tesseract-for-python-on.html
我得到的错误是:
File does not exist:['/usr/include/tesseract/capi.h', '/usr/local/include/tesseract/capi.h', '/opt/include/tesseract/capi.h', '/opt/local/include/tesseract/capi.h']
root@opencv:/home/philipp/python-tesseract#按顺序遵循其余说明在/python-tesseract中运行python setup.py clean时。
在此系统上运行linux 3.2.0-4-amd64。
Whereis tesseract-ocr返回:
/usr/share/tesseract-ocrWhereis leptonica返回:
/usr/include/leptonicaWhereis tesseract返回:
tesseract: /usr/bin/tesseract /usr/bin/X11/tesseract /usr/include/tesseract/ /usr/share/man/man1/tesseract.1.gz我还尝试运行其他一些教程/指南来安装python-tesseract,它们返回了其他错误,例如,缺少libleptonica然后缺少libc6,但我没有调查这些错误。我只是想看看有没有其他的指南能立即生效。此外,当我在终端中运行tesseract时,它可以工作,但import tesseract不能。
我做错了什么?如何修复此问题并安装python-tesseract?
发布于 2016-03-30 05:13:03
我认为这种方式对你来说是可行的:
1-从here下载python-tesseract_0.9-0.5ubuntu3_vivid_amd64.deb
2-安装gdebi-core
sudo apt-get install gdebi-core3-使用gdebi安装python-tesseract_0.9-0.5ubuntu3_vivid_amd64.deb
sudo gdebi python-tesseract_0.9-0.5ubuntu2_i386.debhttps://stackoverflow.com/questions/31875029
复制相似问题