【问题标题】:FileNotFoundError: Cannot find file when downloading zip file from GitHub on Google ColabFileNotFoundError:从 Google Colab 上的 GitHub 下载 zip 文件时找不到文件
【发布时间】:2020-03-04 03:10:48
【问题描述】:

我正在尝试使用Google Colab 上的this 数据集,但是当我尝试使用这段代码download 时:

from google.colab import files
files.download("https://github.com/RomRoc/objdet_fizyr_colab/blob/master/goat_dataset.zip")

我收到这条消息:

FileNotFoundError:找不到文件:https://github.com/RomRoc/objdet_fizyr_colab/blob/master/goat_dataset.zip

我手动下载了这个zip并解压,一切都很好,但不是在Colab,我试图用wgeturllib.request.urlretrieve下载file,但它只是下载@987654331文件的@,原来有12.5 MB

【问题讨论】:

    标签: python github download zip google-colaboratory


    【解决方案1】:

    这是WAI。来自文档

    files.download 将调用浏览器将文件下载到您的本地计算机。

    【讨论】:

      最近更新 更多