colab挂载谷歌云盘出错
生活随笔
收集整理的這篇文章主要介紹了
colab挂载谷歌云盘出错
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
E: Unable to locate package google-drive-ocamlfuse
使用colab原來掛載云盤的代碼時(shí)出現(xiàn)了如上的錯(cuò)誤,百度找不到解決辦法,原代碼如下
!apt-get install -y -qq software-properties-common python-software-properties module-init-tools !add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null !apt-get update -qq 2>&1 > /dev/null !apt-get -y install -qq google-drive-ocamlfuse fuse from google.colab import auth auth.authenticate_user() from oauth2client.client import GoogleCredentials creds = GoogleCredentials.get_application_default() import getpass !google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL vcode = getpass.getpass() !echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}在github上找到了解決辦法
E: Unable to locate package google-drive-ocamlfuse · Issue #492 · astrada/google-drive-ocamlfuse
Not able to install google-drive-ocamlfuse · Issue #276 · googlecolab/colabtools
現(xiàn)將修改后的代碼附在下面
總結(jié)
以上是生活随笔為你收集整理的colab挂载谷歌云盘出错的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 类的序列化[Serializable]
- 下一篇: ExtJs4 笔记 Ext.tab.Pa