在 Linux 上I got this error because I installed pytesseract with pip but forget to install the binary.sudo apt updatesudo apt install tesseract-ocrsudo apt install libtesseract-dev在 Mac 上brew install tesseract在 Windows 上从 https://github.com/UB-Mannheim/tesseract/wiki 下载二进制文件.然后将 pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe' 添加到您的脚本中.(如有必要,替换tesseract二进制文件的路径)On Windowsdownload binary from https://github.com/UB-Mannheim/tesseract/wiki. then add pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe' to your script. (replace path of tesseract binary if necessary)参考资料:https://pypi.org/project/pytesseract/(安装部分)和https://github.com/tesseract-ocr/tesseract/wiki#installationreferences:https://pypi.org/project/pytesseract/ (INSTALLATION section) andhttps://github.com/tesseract-ocr/tesseract/wiki#installation 这篇关于如何解决 TesseractNotFoundError?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 阿里云证书,YYDS!
05-24 23:23