在Linux系统上安装PythonTesseract

2024-09-27 07:19:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我在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返回:

^{pr2}$

Whereis leptonica返回:

/usr/include/leptonica

Whereis 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?在


Tags: httpbinincludelinuxusrlocal系统错误
1条回答
网友
1楼 · 发布于 2024-09-27 07:19:59

我想这个方法对你有用:

1-从here下载python-tesseract_0.9-0.5ubuntu3_vivid_amd64.deb

2-安装gdebi核心

sudo apt-get install gdebi-core

3-使用gdebi安装python-tesseract_.9-0.5ubuntu3_vivid_amd64.deb

^{pr2}$

相关问题 更多 >

    热门问题