google-drive-api - 无法找到软件包 google-drive-ocamlfuse ,突​​然停止工作

标签 google-drive-api jupyter google-colaboratory

我最近一直在使用 colab,直到现在我使用 google-drive-ocamlfuse 将我的项目链接到我的驱动器,但它无法加载包。

!apt-get update -qq 2>&1 > /dev/null
!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
!add-apt-repository ppa:alessandro-strada/google-drive-ocamlfuse-beta
!apt-get update -qq 2>&1 > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse

这里有引用表格 https://medium.com/@burakteke/tutorial-on-using-google-colab-for-kaggle-competition-620393c22821

直到昨天它还可以正常工作,但今天突然停止工作了。

最佳答案

按照 https://github.com/astrada/google-drive-ocamlfuse/issues/493#issuecomment-422380636 应该可以正常工作

https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa/+packages 更改 amd64arm64armhfi386 之间的构建

!apt-get install -y -qq software-properties-common python-software-properties module-init-tools
!wget https://launchpad.net/~alessandro-strada/+archive/ubuntu/google-drive-ocamlfuse-beta/+build/15331130/+files/google-drive-ocamlfuse_0.7.0-0ubuntu1_amd64.deb
!dpkg -i google-drive-ocamlfuse_0.7.0-0ubuntu1_amd64.deb
!apt-get install -f
!apt-get -y install -qq 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}

关于google-drive-api - 无法找到软件包 google-drive-ocamlfuse ,突​​然停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52385655/

相关文章:

android - 使用 Documents List API v3.0 在 Android 手机上使用嵌入 URL 发布预览 Google Docs 文本文档

python - 从 Jupyter 使用 Python 设置 Drive API 时出错

c# - 将 Google 云端硬盘访问权限委托(delegate)给服务帐户失败

python - 在 Jupyter 上运行 justpy Web 应用程序会返回 RuntimeError

python-3.x - 有没有办法为 ipywidgets 中的容器设置标题值?

python - 如何在 Jupyter 中将 %%time 值存储在变量中?

python - Google colab "glob.glob"为什么找不到我的 1456 文件?

javascript - file.id 在使用 api rest 在谷歌驱动器中创建文件夹期间未定义

python - TensorFlow 类型错误 : 'BatchDataset' object is not iterable/TypeError: 'CacheDataset' object is not subscriptable