我这样安装磁盘:
from google.colab import drive
drive.mount('/content/drive', force_remount=True)
我可以访问磁盘上除以下文件之外的所有文件:MyDataset.zip
如果我尝试以这种方式复制它:
copy_cmd = "/content/drive/My\ Drive/MyDataset.zip /content/MyDataset"
!cp $copy_cmd
他写了一个错误:
cp:读取“ / content / drive /我的驱动器/MyDataset.zip”时出错:操作 已取消
如果我尝试通过colab文件浏览器下载它,则会出现此错误:
Error
Download failed
Could not fetch resource at https://colab.research.google.com/tun/m/gpu-t4-s-3l8lfafkvov1w/files/content/drive/My%20Drive/MyDataset.zip?authuser=0: 500
FetchError: Could not fetch resource at https://colab.research.google.com/tun/m/gpu-t4-s-3l8lfafkvov1w/files/content/drive/My%20Drive/MyDataset.zip?authuser=0: 500
at Dz.Cz [as constructor] (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:910:76)
at new Dz (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:910:293)
at Aa.program_ (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:4070:158)
at Ca (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:17:336)
at Aa.next_ (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:15:474)
at Ea.next (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:18:206)
at b (https://colab.research.google.com/v2/external/external_polymer_binary.js?vrz=colab-20200129-085600-RC01_292181754:26:268)
在这种情况下,cp和文件浏览器下载将与安装的磁盘上的任何其他文件一起工作。
观看此视频:https://imgur.com/a/RDPGjva
怎么了?
答案 0 :(得分:0)
好吧,我解决了这个问题,这当然是一个拐杖,但是我不得不将归档文件分成几部分,将其格式更改为rar(zip压缩多卷,不支持现代加密),并对其进行加密,之后Google不再阻止转移
最有趣的是,MyDataset.zip被下载了两次,然后突然停止,即使两天后,无论是代码还是存档,都没有任何改变。
Google可以阻止不需要的文件而不会发出警告。