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啦