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月前
mac zsh: command not found: pip解决方法
mac zsh: command not found: pip解决方法
334 0
|
Java PHP C++
使用moviepy生成视频时,提示找不到ImageMagick
使用moviepy生成视频时,提示找不到ImageMagick
439 0
使用moviepy生成视频时,提示找不到ImageMagick
解决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
715 0
解决ERROR: Cannot uninstall ‘llvmlite‘. It is a distutils installed project and thus we cannot accurat
解决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
332 0
解决ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accuratel
【解决方案】成功解决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
531 0
|
网络协议
macbook中安装Homebrew 出现443错误
macbook中安装Homebrew 出现443错误
677 0
|
编译器
Qt没有被正确安装,请运行make install -- 问题的解决办法
Qt没有被正确安装,请运行make install -- 问题的解决办法
1114 0
|
程序员
dlib库安装失败 PackagesNotFoundError: The following packages are not available from current channels解决办法
dlib库安装失败 PackagesNotFoundError: The following packages are not available from current channels解决办法
|
计算机视觉 Python
关于最新版本的Anaconda里面的Spyder里总出现 ‘DLL load failed: 找不到指定的模块’ 的问题
关于最新版本的Anaconda里面的Spyder里总出现 ‘DLL load failed: 找不到指定的模块’ 的问题
关于最新版本的Anaconda里面的Spyder里总出现 ‘DLL load failed: 找不到指定的模块’ 的问题