使用 Apt get 为 Google App Engine 安装包

Installing a package using Apt get for Google App Engine

我正在部署光学字符识别 Web 应用程序。但是,我意识到其中一个软件包需要通过 apt-get 而不是 pip 安装。我想知道我将如何通过 google 应用引擎来做到这一点?仅供参考,我想安装:

sudo apt-get install tesseract-ocr

您是否尝试安装 pytesseract via pip and include it in you requirements.txt for the application you're planning to deploy on app engine (Standard or Flexible)?

如果pytesseract包的利用率不够,可以尝试部署一个App Engine Flex Custom Runtime service and specify the installation of this package in the Dockerfile这个服务