【发布时间】:2019-06-11 08:30:50
【问题描述】:
我想在 google Colab 上挂载 google drive,我正在使用这个命令来挂载驱动器
from google.colab import drive
drive.mount('/content/drive/')
但我收到此错误
ValueError Traceback (most recent call last)
<ipython-input-45-9667a744255b> in <module>()
1 from google.colab import drive
----> 2 drive.mount('content/drive/')
/usr/local/lib/python3.6/dist-packages/google/colab/drive.py in
mount(mountpoint, force_remount)
99 raise ValueError('Mountpoint must either be a directory or not exist')
100 if '/' in mountpoint and not _os.path.exists(_os.path.dirname(mountpoint)):
--> 101 raise ValueError('Mountpoint must be in a directory that exists')
102 except:
103 d.terminate(force=True)
ValueError: Mountpoint must be in a directory that exists
【问题讨论】:
-
drive.mount('/content/drive') 自昨天(1 月 19 日)以来对我也不再有效。 Google Colab 改变了什么?我没有改变任何东西,这个命令已经工作了几个月。
标签: python google-colaboratory valueerror