我用andconda 安装的是Python3.8的,安装Tesseract-OCR V4.0.0版本一直出现错误,后改用Tesseract-OCR V4.1.0 即可。
pytesseract.pytesseract.TesseractNotFoundError: C:\Program Files (x86)\Tesseract-OCR\tesseract.exe is not installed or it’s not in your PATH。
附上Tesseract-OCR 下载链接 :https://digi.bib.uni-mannheim.de/tesseract/
我下载的是这个
安装过程可参考其他博主,注意记住自己的安装路径。环境搭建下图所示
如果没有安装pytesseract模块 先安装黑窗口输入 pip install pytesseract
就是这个玩意
然后将pytesseract 程序里面的 tesseract_cmd 路径改为绝对路径。步骤如下,修改完就能在pycharm 上运行了。