You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.22 10:15:50