在GCP Cloud Functions部署Python函数,需将Functions Framework加入requirements.txt吗?
GCP Cloud Functions Python函数的requirements.txt是否需要包含Functions Framework?
创建运行在GCP Cloud Functions的Python函数时,是否需要将Python版Functions Framework作为依赖项加入requirements.txt文件?
目前存在两处官方信息不一致的情况:
- 官方代码仓库明确说明不需要:
在Cloud Functions上,无需使用Functions Framework:你不需要将其添加到requirements.txt文件中。
- 官方文档则要求必须添加:
你的requirements.txt文件必须包含Python版Functions Framework作为依赖项
内容的提问来源于stack exchange,提问作者ianyoung
相关产品推荐
相关产品推荐

