TesseractNotFoundError: tesseract is not installed or it‘s not in your path

python -使用pytesseract识别验证码中遇到tesseract is not installed or it’s not in your path解决方案
在这里插入图片描述

下载Tesseract-OCR,放的地方要记住,我放到了C:\Program Files (x86)
链接:https://pan.baidu.com/s/1FZk0r00xfzMcCvFcyrRWaQ
提取码:ylkb

然后找到pytesseract安装的位置,一般是在lib\site-packages\下,找到pytesseract.py文件,打开
将tesseract_cmd的路径换成tesseract.exe的路径.如下
在这里插入图片描述
注:路径前面的r一定不能省略
保存再执行原来的python文件,ok啦
在这里插入图片描述


版权声明:本文为weixin_44705725原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。