1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| Traceback (most recent call last):
File "D:\Python\Python312\Lib\site-packages\pytesseract\pytesseract.py", line 275, in run_tesseract
proc = subprocess.Popen(cmd_args, **subprocess_args())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python312\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "D:\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
During handling of the above exception, another exception occurred:
...
File "D:\Python\Python312\Lib\site-packages\pytesseract\pytesseract.py", line 486, in image_to_string
return {
^
File "D:\Python\Python312\Lib\site-packages\pytesseract\pytesseract.py", line 489, in <lambda>
Output.STRING: lambda: run_and_get_output(*args),
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python312\Lib\site-packages\pytesseract\pytesseract.py", line 352, in run_and_get_output
run_tesseract(**kwargs)
File "D:\Python\Python312\Lib\site-packages\pytesseract\pytesseract.py", line 280, in run_tesseract
raise TesseractNotFoundError()
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information.
|