current position:Home>Python will teach you how to solve tesseractnotfounderror: Tesseract is not installed or it's not in your path

Python will teach you how to solve tesseractnotfounderror: Tesseract is not installed or it's not in your path

2022-07-25 03:29:5551CTO

Table of Contents

1. The reason for the error

Download the installed tesseract Environment variables and pytesseract The relevant path in the source file is not configured

2. Solution

2.1 Add environment variables

Open Settings , Search for environment variables , Click New , Will be installed tesseract -OCR Copy and paste the path of
python Teach you to solve it hand in hand TesseractNotFoundError: tesseract is not installed or it‘s not in your path_ environment variable
python Teach you to solve it hand in hand TesseractNotFoundError: tesseract is not installed or it‘s not in your path_OCR_02

2.2 modify pytesseract.py In the document tesseract_cmd route

  1. find tesseract-OCR in tesseract.exe Where files are stored , Copy file path
    python Teach you to solve it hand in hand TesseractNotFoundError: tesseract is not installed or it‘s not in your path_ Download address _03

  2. find pytesseract Installation position of , If it is anaconda, That's usually in Anaconda\Lib\site-packages Under the path , find pytesseract.py Open the file later , Will the tesseract_cmd Replace the path of with tesseract.exe The path of , Save it after modification
    python Teach you to solve it hand in hand TesseractNotFoundError: tesseract is not installed or it‘s not in your path_tesseract_04python Teach you to solve it hand in hand TesseractNotFoundError: tesseract is not installed or it‘s not in your path_ Download address _05

3. Resource link supplement

tesseract - OCR Download address : https://digi.bib.uni-mannheim.de/tesseract/

copyright notice
author[51CTO],Please bring the original link to reprint, thank you.
https://en.pythonmana.com/2022/201/202207192229292651.html

Random recommended