TesseractNotFoundError: D: esseract-ocr esseract.exe is not installed or it's not in your PATH. See README file for more information.
时间: 2024-04-28 14:25:09 浏览: 7
这个错误提示表明 Tesseract OCR 没有安装或者没有在系统 PATH 环境变量中设置。要解决这个问题,您可以尝试以下几个步骤:
1. 下载 Tesseract OCR
首先,您需要从 Tesseract OCR 官方网站下载 Tesseract OCR 安装包,并安装到您的计算机上。下载链接:https://github.com/UB-Mannheim/tesseract/wiki
2. 将 Tesseract OCR 添加到系统 PATH 环境变量中
在安装完 Tesseract OCR 之后,您需要将 Tesseract OCR 的安装路径添加到系统 PATH 环境变量中。具体步骤如下:
- 右键单击“计算机”或“此电脑”,选择“属性”;
- 点击“高级系统设置”,选择“环境变量”;
- 在“系统变量”中找到“Path”,双击打开;
- 在“变量值”末尾加上 Tesseract OCR 的安装路径(例如:D:\tesseract-ocr);
- 点击“确定”保存修改。
3. 重启 Spyder
添加完 Tesseract OCR 的安装路径到系统 PATH 环境变量之后,您需要重启 Spyder,以便系统可以正确读取新的环境变量设置。重新启动 Spyder 后,您应该可以正常使用 Tesseract OCR 了。
希望这些步骤能够帮助您解决问题。
相关问题
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information
As an AI language model, I do not have access to your system's PATH variables or installed software. However, this error message indicates that Tesseract OCR is not installed or cannot be found in your system's PATH.
To resolve this issue, you can try the following steps:
1. Install Tesseract OCR on your system. You can download it from the official website: https://github.com/tesseract-ocr/tesseract
2. Add the Tesseract OCR installation directory to your system's PATH variable. This will allow your system to find the Tesseract OCR executable file when it is called by pytesseract.
3. Restart your system or open a new terminal session to ensure that the PATH variable is updated.
If you have already installed Tesseract OCR and added it to your PATH, make sure that you have spelled the executable file name correctly in your code. Also, check that the version of pytesseract you are using is compatible with the version of Tesseract OCR installed on your system.
进行了pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information.报错
如果出现 `pytesseract.pytesseract.TesseractNotFoundError` 报错,那么可能是因为你没有安装 Tesseract OCR 引擎,或者 Tesseract OCR 引擎没有被正确地安装到系统的环境变量中。
你可以先尝试安装 Tesseract OCR 引擎,可以使用以下命令进行安装:
```python
!sudo apt update
!sudo apt install tesseract-ocr
```
如果你使用的是 Windows 系统,可以从 Tesseract OCR 官方网站下载安装包进行安装。
安装完成后,你可以检查 Tesseract OCR 引擎是否在系统的环境变量中。在终端或命令提示符中输入以下命令:
```python
tesseract --version
```
如果能够正确输出 Tesseract OCR 引擎的版本信息,那么说明 Tesseract OCR 引擎已经被正确地安装到了系统的环境变量中,你可以重新运行你的代码。如果还是不行,可以尝试重启一下你的计算机,然后再运行代码。