InvalidClientSecretsError df2gspread Pandas Google Sh无效

2024-03-29 12:24:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我是Python的新手(两周前开始学习),我正在努力完成这项任务。在

我正在尝试从Panda导出一个数据帧到Google电子表格。然而,在遵循了所有必要的步骤(https://github.com/maybelinot/df2gspread)之后,我仍然会遇到相同的错误:

InvalidClientSecretsError: ('Error opening file', 'C:\Users\ User/.gdrive_private', 'No such file or directory', 2)

我使用的代码是:

from df2gspread import df2gspread as d2g
import pandas as pd

spreadsheet = 'C:\Users\User\Google Drive\Marketing Team'

wks = d2g.upload(df_all_daily_campaign_y, wks_name='Example worksheet')

因为我对这个话题的了解很有限,所以请不要给我任何理所当然的东西!在

我在网上看到过这个问题,但是没有答案!任何帮助将不胜感激!在


Tags: 数据httpsimportasgoogle步骤pandausers
1条回答
网友
1楼 · 发布于 2024-03-29 12:24:49

此错误表示在C:\Users\ User/.gdrive_private中找不到包含客户端机密的必需的OAuth文件。在

请检查您的Client Secrets的完整性。 如给定文件所述

That can be error prone, along with it being an incomplete picture of all the information that is needed to get OAuth 2.0 working, which requires knowing all the endpoints and configuring a Redirect Endpoint.

更多信息和有用的代码可以在GitHuboauth2client.clientsecrets中找到。在

相关问题 更多 >