tesserocr安装过程中的问题

tesserocr是Python的一个OCR识别库,但其实是对tesseract做的一层Python API封装,所以它的核心是tesseract。
因此,在安装tesserocr之前,我们需要先安装tesseract。

tesseract下载地址:http://digi.bib.uni-mannheim.de/tesseract


在Windows操作系统下,如果下载完 tesseract 在命令提示符执行pip install tesserocr pillow会报错:
在这里插入图片描述

而 python3.8.0没有对应版本的.whl文件,因此无法通过下载.whl文件安装。

但可以通过下载 Anaconda,并输入conda install -c simonflueckiger tesserocr pillow安装。


测试:

图片地址:https://raw.githubusercontent.com/Python3WebSpider/TestTess/master/image.png

解决方法:用Windows批处理命令 type 代替 cat:


最后我选择卸载Python3.8,安装Python3.7,这样就有对应版本的.whl文件了。

发布了75 篇原创文章 · 获赞 267 · 访问量 5235

猜你喜欢

转载自blog.csdn.net/weixin_45961774/article/details/105005616