python - 无法在 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文件,但仍然抛出错误
解决方案
推荐阅读
- java - 如何记录由 JOOQ 执行的生成的 sql
- r - r 将 DOI 列表转换为 BibTeX
- python - 使用索引将文本从文件读取到数组问题
- javascript - 如何修复:使用 discord.js 创建语音通道的“无法读取属性”
- bash - 解析此字符串以获取 bash 中的特定信息
- python - Windows中是否有等效的evdev
- javascript - 使用 API 和 JavaScript 写入工作表 - CORS 块
- vb.net - 如何使用 VB.net 中的“ExecuteScriptAsync”方法检索返回值?
- jquery - 触发 addEventListener “onclick” 而不是 “click”
- python - 如何在 alembic 升级头中运行升级后代码