Here is my code in google colab:
from google.colab import drive
drive.mount('content/drive/My Drive/ML')
I have a path which contains space symbol and I get this error:
/usr/local/lib/python3.6/dist-packages/google/colab/drive.py in mount(mountpoint, force_remount, timeout_ms) 89 90 if ' ' in mountpoint: ---> 91 raise ValueError('Mountpoint must not contain a space.') 92 93 mountpoint = _os.path.expanduser(mountpoint)
ValueError: Mountpoint must not contain a space.
I have tried drive.mount('content/drive/My\ Drive/ML') and this doesn't work
Access local files through the file-explorer You can either use the upload option at the top of the file-explorer pane to upload any file(s) from your local file system to Colab in the present working directory. 2. Select the “upload” option.
Mount at /content/drive
from google.colab import drive
drive.mount('/content/drive')
Change directory using cd command
cd 'drive/My Drive'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With