Google App Engine Flexible Python service fails with "ModuleNotFoundError: No module named 'google'"

Google App Engine Flexible Python service fails with "ModuleNotFoundError: No module named 'google'"

我正在将 Python3 应用程序部署到 Google App Engine 柔性环境。 requirements.txt 文件中列出了我所有的依赖项。

在部署期间,我收到消息表明 Google 库已部署。 但是,当服务启动时它失败了 from google.cloud import storage ModuleNotFoundError: No module named 'google' 这在本地运行良好。

我需要包含一个附加文件。 ./setup.cfg [安装] 前缀=