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

即完成导入。


相关文章
|
关系型数据库 MySQL C语言
gcc版本过低导致charconv: No such file or directory
gcc版本过低导致charconv: No such file or directory
1520 0
|
6月前
|
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.,
825 0
|
开发工具 git
编译Gstreamer遇到的问题 autopoint: not found
编译Gstreamer遇到的问题 autopoint: not found
165 0
Linux——解决安装RPM包出现的conflicts with file from package
Linux——解决安装RPM包出现的conflicts with file from package
|
编译器
Qt没有被正确安装,请运行make install -- 问题的解决办法
Qt没有被正确安装,请运行make install -- 问题的解决办法
1294 0
python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]
python离线安装环境 解决 ERROR: Could not find a version that satisfies the requirement xxx 以及winError[10061]
|
Ubuntu
Ubuntu20.04安装软件报错:The following packages have unmet dependencies
Ubuntu20.04安装软件报错:The following packages have unmet dependencies
1156 0
Ubuntu20.04安装软件报错:The following packages have unmet dependencies
|
C语言 Python
Python 解决Python安装包时提示Unable to find vcvarsall.bat的问题
Python 解决Python安装包时提示Unable to find vcvarsall.bat的问题
125 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
627 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
1039 0
解决ERROR: Cannot uninstall ‘llvmlite‘. It is a distutils installed project and thus we cannot accurat