python - 导入错误 : cannot import name 'bigquery' from 'google.cloud' (unknown location)

标签 python google-cloud-platform google-bigquery google-cloud-functions

我正在尝试部署一个云函数,它在从 google.cloud 导入 bigquery 后一直向我返回以下错误

ImportError: cannot import name 'bigquery' from 'google.cloud' (unknown location)
我已经尝试安装所有最新版本并删除并重新安装并持续存在
任何的想法?

最佳答案

尝试添加类似 google-cloud-bigquery==2.3.1 的内容进入 requirements.txt您的 Google Cloud Functions 的
enter image description here

关于python - 导入错误 : cannot import name 'bigquery' from 'google.cloud' (unknown location),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65231632/

相关文章:

google-bigquery - Big Query 作业失败,错误为 "Bad character (ASCII 0) encountered."

python - 尝试使用Python从URL获取json数据

python - CNN with keras,精度保持不变,没有提高

mongodb - 如何在云运行上为 docker 容器关联持久卷

docker - Google Cloud SQL 代理传递凭据文件时出现问题

google-bigquery - 大查询 : Encountered an error while globbing file pattern

python - 关闭蜘蛛时 Scrapy/BigQuery 失败并发送此错误 : OSError: [Errno 5] Input/Output error

python - 如何以元组列表的形式处理查询参数?

python - Python 的 argparse 中的 metavar 和 action 是什么意思?

kubernetes - 在没有来自 Jenkins 的 gcloud SDK 的情况下授权给 Google Container Engine 上的 Kubernetes