Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python AWS EC2机器给料;pytesseract.pytesseract.TesseractNotFoundError:tesseract未安装或它';“它不在你的道路上”;_Python_Amazon Web Services_Amazon Ec2_Ocr_Python Tesseract - Fatal编程技术网

Python AWS EC2机器给料;pytesseract.pytesseract.TesseractNotFoundError:tesseract未安装或它';“它不在你的道路上”;

Python AWS EC2机器给料;pytesseract.pytesseract.TesseractNotFoundError:tesseract未安装或它';“它不在你的道路上”;,python,amazon-web-services,amazon-ec2,ocr,python-tesseract,Python,Amazon Web Services,Amazon Ec2,Ocr,Python Tesseract,我想使用python在AWS EC2机器上使用tesseract ocr 我已经安装了tesseract ocr,Pyteseract并设置了TesserData\u前缀=/usr/local/share/TesserData…,但在调用Pyteseract的image\u to\u string方法时仍然出现以下错误 pytesseract.pytesseract.TesseractNotFoundError:tesseract不是 已安装或不在您的路径中 您还必须将teseract安装文件夹

我想使用python在AWS EC2机器上使用tesseract ocr

我已经安装了
tesseract ocr
Pyteseract
并设置了
TesserData\u前缀=/usr/local/share/TesserData…
,但在调用Pyteseract的
image\u to\u string
方法时仍然出现以下错误

pytesseract.pytesseract.TesseractNotFoundError:tesseract不是 已安装或不在您的路径中


您还必须将
teseract
安装文件夹添加到路径。如果您已经这样做了,您可能需要重新启动一次,或者至少注销并登录。tesseract是您为tesseract提供的访问语言数据的路径。

也许您已经用PIP安装了“PyteserAct”

在Ubuntu上:

sudo apt update
sudo apt install tesseract-ocr
sudo apt install libtesseract-dev
在MAC上:

brew install tesseract

使用上述命令安装后,问题将得到解决

我已将PATH变量更新为location,其中保留了langauge模型,但仍显示相同的错误。EC2机器重启我需要试试。我会让你不断更新不是语言模型的路径,而是tesseract.exe的路径这是在Linux机器上的..所以我认为.exe是在Windows上的..它可能是创建的二进制文件。请提出建议。您是使用apt get安装的吗?它是aws上的RHEL机器。因此只有yum和pip在工作。apt get不工作