Search code examples
google-drive-apigoogle-colaboratory

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


In Colab, the following code snippet is used for mounting Google Drive.

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

And I'm wondering if it could work on my local machine. When implementing this locally, it says "no module named google", even after having executed pip install google.
Is there another package that should be installed, or it just cannot be achieved? I've searched for a while, but it seems that the only solution is to install Google Drive Desktop to give access to remote files.


Solution

    • Although google.colab python library can be found here, this library is a collection of tools meant to work in conjunction with the Google Colab product.

    • Indeed, Google Drive Desktop is your best option to "mount" your Google Drive to your local machine.

    • Alternatively, there are several 3rd party Google Drive clients available.