api - Jupyter Notebook 和 Gsheet 之间的连接 - 失败 - HttpError 403 错误
问题描述
我m completetly new using Google Cloud Platform and APIs so I don
不知道如何解决这个问题。我正在尝试将我的 Jupyter 笔记本与谷歌表连接,这样我就可以将 Jupyter 上的数据集连接到 Gsheet。
我建立了所有连接并且没有收到任何错误,在我的最后一步中,我使用了以下代码:
from df2gspread import df2gspread as d2g
wks_name = 'Jupyter Manipulated Data'
d2g.upload(df_apn1, wks_name, credentials=credentials, row_names=True)
并收到此错误:
HttpError: <HttpError 403 when requesting https://www.googleapis.com/drive/v3/files/root?fields=id&alt=json returned "Insufficient Permission: Request had insufficient authentication scopes.">
我t found any solution here that could fix this and, as I said before, I don
没有这方面的经验,所以我真的不知道如何解决它。我确保所有应该启用的东西都是这样,所以这不是问题。
有人知道如何解决这个问题吗?
谢谢
解决方案
推荐阅读
- c++ - Windows Visual C++ 2019 试图传递预处理器变量(Linux 中的 -D)错误 C2143:语法错误:缺少 ';' 在“常数”之前
- python - 需要减少此函数中的递归调用次数
- enums - 两种类型的派送应该怎么做?
- python-3.x - 张量流中的占位符无效
- python-3.x - Python socket recv 没有给出好的结果
- r - 如何按存储在变量中的列中的日期过滤数据框?
- python - 在 ipython 中获取进程退出代码(和其他“特殊”环境变量)
- javascript - Companies House,从响应中提取数据(rest API)
- r - 如何从嵌套列表创建数据框?
- flutter - 我如何在颤动中获得这种计时器类型的视频播放器?