我在树莓派 5 上遇到
pytesseract
的问题。
运行程序一直说
"An error occurred on visual studio code: <path_to_pytesseract_executable> is not installed or it's not in your PATH. See README file for more info.
(所有其他库都工作得很好,遵循相同的安装过程)
我成功安装了所需的所有软件包
sudo apt install tesseract-ocr
,pip install pytesseract
。我还更新了它们(它们已经是最新的)。
执行
pip
列表并 pip
显示 pytesseract
,它表明我图书馆就在那里。
我的树莓派 5 上的 pytesseract 遇到问题
它现在可以在 Raspberry Pi 4 和 5 上运行。
唯一的问题是
python3-pip
而不是python-pip
。
首先,安装这个...
sudo apt install python3-pip
然后第二...
sudo pip install pytesseract
.
然后运行脚本。