首页 > 解决方案 > 在本地运行时使用 google-colab 时如何访问谷歌驱动器数据?

问题描述

我曾尝试使用 PyDrive 进行身份验证并获得对 Google Drive 的访问权限。我遵循了这里的每一步,https://pythonhosted.org/PyDrive/quickstart.html

下载并重命名“client_secrets.json”后,我应该在 Jupyter notebook 环境中的哪里放置或使用这个文件,以便在 google-colab 中访问 google-drive 以进行本地运行时?

我收到错误,InvalidConfigError:保存 PyDrive 凭据时客户端机密文件无效。

为了在“本地运行时”中使用 Google Colab。您必须安装 Jupyter 和相关软件包,我已经能够做到,如此处所述https://research.google.com/colaboratory/local-runtimes.html

但是现在如何访问“google-drive”?

标签: google-colaboratoryjupyter-labpydrive

解决方案


推荐阅读