【发布时间】:2021-07-13 07:48:27
【问题描述】:
我正在尝试在 python 中使用 BigQuery 来查询通过工作表生成的表:
from google.cloud import bigquery
# Prepare connexion and query
bigquery_client = bigquery.Client(project="my_project")
query = """
select * from `table-from-sheets`
"""
df = bigquery_client.query(query).to_dataframe()
我通常可以对 BigQuery 表进行查询,但现在我收到以下错误:
Forbidden: 403 Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials.
我需要做什么才能从 python 访问驱动器?
还有其他方法吗?
【问题讨论】: