python - 未能将 tensorflow==2.1.0 安装到 Cloud Functions 运行时 Python 3.7
问题描述
我正在尝试将 tensorflow 安装到 Google Cloud Functions 中,但无法部署如下错误。
protoPayload: {
@type: "type.googleapis.com/google.cloud.audit.AuditLog"
authenticationInfo: {…}
methodName: "google.cloud.functions.v1.CloudFunctionsService.UpdateFunction"
requestMetadata: {…}
resourceName: "projects/xxxxxxxxxxxxxx/functions/analyzepy"
serviceName: "cloudfunctions.googleapis.com"
status: {
code: 3
message: "INVALID_ARGUMENT"
}
}
我所做的是;
添加tensorflow==2.1.0
Requirements.txt
我的运行时是Python 3.7
Memory 256 MiB
请告知如何在 Cloud Functions 上安装 tensorflow。
谢谢!
解决方案
推荐阅读
- docusignapi - 是否可以通过 DocuSign API 模拟文档签名?
- ios - 如何在 Swift 中修复“Extraneous argument label 'input:' in call”和 sigabrt THREAD1 问题
- javascript - 使用 react-pdf 时的严重依赖警告
- mongodb - 如何使用 bulk.Insert() 将 interface{} 类型插入 mongodb
- excel - “他们试图用这段代码做什么?”
- php - XML 编码错误,但 XML 和输入文本编码在 php 中都是 utf-8
- python - 如何删除包含格式错误的日期和时间值的行?
- python - 如何隐藏按钮“创建发票”但基于条件?(奥多 11)
- r - 尝试使用“xml_find_all”抓取网站后出现错误“xpath_search”
- javascript - 如何修复“TypeError: (images || []).forEach 不是函数”