在notebook中运行下方代码进行授权绑定

# 授权绑定Google Drive
!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}
# 指定Google Drive云端硬盘的根目录,名为drive
!mkdir -p drive
!google-drive-ocamlfuse drive
# 指定当前的工作目录
import os# 此处为google drive中的文件路径,drive为之前指定的工作根目录,要加上
os.chdir("drive/myML/new2AI-master")
!python hello.py

Google云端硬盘Colab 指定文件夹相关推荐

  1. google云端硬盘colab

    colab可以免费使用一块K80的GPU Colab的使用界面类似jupyter notebook.运行于虚拟机(VM)上.虚拟机配置K80 GPU,12G内存,39G硬盘空间.缺点是最多只能运行12 ...

  2. 笔记本电脑与台式机同步连接_如何将台式机与Google云端硬盘(和Google相册)同步...

    笔记本电脑与台式机同步连接 Google has been doing its part to make sure everyone has a backup of important data, a ...

  3. 谷歌云端硬盘 转存_如何在Mac上设置和使用Google云端硬盘

    谷歌云端硬盘 转存 While Apple users can easily use the iCloud storage service, it comes with only 5 GB of fr ...

  4. 谷歌云端硬盘 转存_如何整理您的Google云端硬盘

    谷歌云端硬盘 转存 Over time, with some neglect and potential laziness, your Google Drive can accrue tons of ...

  5. 在服务器上下载google云端硬盘文件

    很多论文会将预处理数据和预训练模型保存在Google Drive上,在个人计算机上下载google云端硬盘的文件想必不是什么难事,那么如何在服务器上下载google云端硬盘的文件呢? 工具:gdown ...

  6. google云端硬盘转存onedrive(支持超大文件)

    网上有一些文件转存方法,比如google云端硬盘转存onedrive秘籍和如何将 Google Drive 的档案移转到 OneDrive 前一个可以转存小文件(1G以下),后者之前好像可以,现在找不 ...

  7. Google云端硬盘已满?如何检查与删除清理Google云端硬盘中的重复的文件

    有几种基于云的存储选项,但可以说Google云端硬盘是最受欢迎和最容易使用的存储之一.但是,如果您定期使用Google云端硬盘,则很有可能会有大量重复文件.而且与Mac上的台式机不同,关闭浏览器而不理 ...

  8. 谷歌云端硬盘下载文件_如何更改Google云端硬盘中文件的所有者

    谷歌云端硬盘下载文件 By default, you're the owner of any file you upload or create on Google Drive. However, i ...

  9. chrome查看网页文件_如何在Chrome中直接将文件和网页下载到Google云端硬盘

    chrome查看网页文件 We've all downloaded files from the web to our computer. However, if you'd rather downl ...

最新文章

  1. 数据库事务的四个隔离级别浅析
  2. oracle上浮下浮分析函数_Oracle SQL高级编程——分析函数(窗口函数)全面讲解...
  3. oracle正在没落,Oracle停掉一个正在运行的job
  4. 【巧妙算法系列】【Uva 11464】 - Even Parity 偶数矩阵
  5. leetcode 872. 叶子相似的树(dfs)
  6. MyEclipse创建struts.xml
  7. 总结下用Vue.js和webpack遇到的问题
  8. vant toast loading 倒计时_日期倒计时软件哪个好 苹果日期倒计时软件推荐
  9. SQL查询数据库结构信息
  10. 如何使用CSS为文本或图像提供透明背景?
  11. 进程互斥的软件实现方法
  12. 23种设计模式-装饰模式
  13. spring-第八篇之容器中的bean的生命周期
  14. “当初要是早有人跟我说这些......“
  15. 微信小程序 java实现登录界面_利用java实现一个微信小程序登录态维护功能
  16. mysql or 索引失效_MySQL索引失效的几种情况详析
  17. 9.12测试(二)——国际象棋
  18. 无人值守安装系统完整(CentOS7)
  19. 深入分析ConcurrentHashMap的源码设计(中)-hash冲突
  20. JSON是什么?对JSON的简单理解

热门文章

  1. python getitem_python中__getitem__详解
  2. python多线程详解(超详细)
  3. 《学习记录》“Python”判断奇数偶数
  4. 基于阿里云物联网平台实现的简易出入监控 1
  5. 高颜值游戏真无线蓝牙耳机推荐,小姐姐最爱五款半入耳式蓝牙耳机
  6. Protecting Personal Data using Smart Contracts
  7. html 样式权重,CSS 权重详解
  8. 路由追踪命令:tracert、pathping 值得收藏
  9. Unity对象和序列化原理介绍
  10. 锂电池行业NMP废气处理——吸附回收