有没有办法像在 Colab 中那样在我的本地机器上挂载 Google 驱动器?

Is there a way to mount Google Drive on my local machine like what could be done in Colab?

在 Colab 中,以下代码片段用于安装 Google 驱动器。

from google.colab import drive
drive.mount('/test', force_remount=True)

而且我想知道它是否可以在我的本地计算机上运行。在本地实现时,它说“没有名为 google 的模块”,即使在执行 pip install google.
之后也是如此 是否应该安装另一个软件包,或者只是无法实现?我搜索了一段时间,但似乎唯一的解决办法是安装 Google Drive Desktop 以提供对远程文件的访问权限。

  • 虽然可以找到 google.colab python 库 here,但是这个库是一个工具集合,旨在与 Google Colab 产品。

  • 的确,Google Drive Desktop 是将 Google 驱动器“挂载”到本地计算机的最佳选择。

  • 或者,有几个第 3 方 Google 驱动器客户端可用。