pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PA...

报错:pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information.

解决方案:
从网上找到相应的‘Tesseract-OCR’下载安装(寻找对应版本)

安装后的默认文件路径为(这里使用的是Windows版本):C:\Program Files (x86)\Tesseract-OCR\

然后将源码中的:

tesseract_cmd = 'tesseract'

修改为

tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'

你可能感兴趣的:(pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PA...)