我正在尝试在docker映像上安装tesseract-ocr版本4.1.1,但是虽然我已经在本地计算机上安装了该版本,但没有找到版本。然后,我尝试添加它的存储库,以便我可以修复错误,但又出现另一个错误E: The repository 'http://ppa.launchpad.net/alex-p/tesseract-ocr/ubuntu focal Release' does not have a Release file
。
这是我在Dockerfile中使用的用于创建用于安装tesseract的Docker映像的命令集
RUN file="$(apt-get update && \
apt-get install -y apt-utils && \
apt-get install -y curl && \
apt-get update && \
apt-get install -y software-properties-common && \
apt-get update && \
add-apt-repository ppa:alex-p/tesseract-ocr -y && \ # the error here
apt-get update && \
apt install tesseract-ocr=4.1.1-1ppa1~xenial1 -y)" && echo $file # the version I need
我已经进行了很多搜索,但仍然无法安装。如何解决此错误,或使用其他方式安装tesseract 4.1.1!?
我的基本图像是python 3.7.6
注意:我无法使用tesseract docker映像来避免其余模块的版本错误
我遇到了同样的问题,您是否找到了解决方案?谢谢