首页 > 解决方案 > 无法在 aws 胶水中导入谷歌云库

问题描述

from google.cloud import bigquery
from google.oauth2 import service_account

credentials = service_account.Credentials.from_service_account_info(service_account_info)
client = bigquery.Client(credentials=credentials, project=PROJECT_ID, location="US")
table_id = projectname + table_name
job_config = bigquery.LoadJobConfig(source_format=bigquery.SourceFormat.CSV, skip_leading_rows=1,
                                    autodetect=True, )

错误-AttributeError:模块'google'没有属性'cloud' 我在python库路径中添加了google lib egg文件,但仍然抛出错误

标签: pythonamazon-web-servicesamazon-s3google-bigqueryaws-glue

解决方案


推荐阅读