tesseract is not installed or it‘s not in your PATH解决办法!

简介: 简介:当我们想使用 pytesseract库的时候,我们开心的使用 pip install pytesseract安装完成后,却发现它并不能识别出图片内容,并且会抛出异常: pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it’s not in your PATH. See README file for more information.

当我们想使用 pytesseract库的时候,我们开心的使用 pip install pytesseract安装完成后,却发现它并不能识别出图片内容,并且会抛出异常: pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it’s not in your PATH. See README file for more information.

我在网上找了一些资料,发现是缺少了一个重要的程序:tesseract


pytesseract官方文档:

https://pypi.org/project/pytesseract/


tesseract官方Github地址:

https://github.com/UB-Mannheim/tesseract


如果担心下载慢的话,也可以使用百度云下载(用免费给的60s提速够用了)


百度云盘链接:

https://pan.baidu.com/s/1LBFHZQfgN9svWEXyB7todA


提取码:pgju


1、安装步骤

image.png


image.png


image.png


安装到这里,有条件的小伙伴可以全部勾选(不勾选也没事,文字包可以自己安装)如果不装,默认只能识别英文。


image.png

image.png


image.png

image.png


2、手动导包(以中文包为例)

先下载中文包,可以去上面所给的github下载,也可以使用下面百度网盘下载

  • 链接:

https://pan.baidu.com/s/1wACfg8pCCZN_PRJtScv99g

提取码:thl7


下载后,


image.png

即完成导入。


相关文章
|
6月前
Sublime Text3安装插件报错:There are no packages available for installation
Sublime Text3安装插件报错:There are no packages available for installation
|
4月前
|
Shell Linux 网络安全
【Python】已完美解决:(pip提示升级)WARNING: There was an error checking the latest version of pip.,
【Python】已完美解决:(pip提示升级)WARNING: There was an error checking the latest version of pip.,
451 0
解决ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratel
解决ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratel
546 0
解决ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratel
解决ERROR: Cannot uninstall ‘llvmlite‘. It is a distutils installed project and thus we cannot accurat
解决ERROR: Cannot uninstall ‘llvmlite‘. It is a distutils installed project and thus we cannot accurat
979 0
解决ERROR: Cannot uninstall ‘llvmlite‘. It is a distutils installed project and thus we cannot accurat
【解决方案】成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
【解决方案】成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
|
Python
Python pip安装报错及解决办法:is not a supported wheel on this platform
Python pip安装报错及解决办法:is not a supported wheel on this platform
643 0
|
程序员
dlib库安装失败 PackagesNotFoundError: The following packages are not available from current channels解决办法
dlib库安装失败 PackagesNotFoundError: The following packages are not available from current channels解决办法
|
缓存 API Android开发
Installation did not succeed。apk安装失败的一些解决办法
Installation did not succeed。apk安装失败的一些解决办法
822 0
Installation did not succeed。apk安装失败的一些解决办法
|
iOS开发 MacOS Python
在MacOS下Python安装lxml报错xmlversion.h not found 报错的解决方案
最近在看一个自动化测试框架的问题,需要用到Lxml库,下载lxml总是报错。 1,使用pip安装lxml pip install lxml 2,然后报错了,报错内容是: In file included from src/lxml/lxml.
1718 0
Linter pylint is not installed
问题 Linter 'pylint' is not installed. Please install it or select another linter". Error: Module 'pylint' not installed.
2980 0