【发布时间】:2021-07-17 17:50:32
【问题描述】:
我正在尝试使用需要 CMake 的 dlib 库。为此,我将两者都包含在 requirements.txt 中。
Requirements.txt
Flask==1.0.2
numpy==1.18.4
opencv-python==4.5.1.48
cmake
dlib
当我将它们都包含在 requirements.txt 中时,会出现以下错误:
“错误:必须安装 CMake 才能构建 dlib”。
我发现 Cloud Functions 会同时安装所有依赖项,因此 CMake 必须已经安装在 Google Cloud Function 实例中。
我还发现我们可以在 Google Cloud public issue tracker 中要求将新包添加到运行时,但是没有其他方法吗?
谢谢
【问题讨论】:
标签: python google-cloud-platform google-cloud-functions dependencies