python - FileNotFoundError:从 Google Colab 上的 GitHub 下载 zip 文件时找不到文件
问题描述
我正在尝试在 上使用此数据集Google Colab
,但是当我尝试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
,我试图file
用wget
and下载的地方urllib.request.urlretrieve
,但它只是下载64.29K
文件,原来有12.5 MB
.
解决方案
这是WAI。从文档
files.download
将调用浏览器将文件下载到本地计算机。
推荐阅读
- c - 如何递归地乘以和打印2个数字的数字
- gojs - GoJS 中的自定义几何图形可以填充颜色吗?
- excel - Excel - 如何将列标题与行标题(日期)匹配并在 VBA 中返回查找值
- python - 导入pyqtgraph jupyter notebook时出错
- oracle - 从 Oracle PLSQL 消费 rest API 正在返回???用于阿拉伯字符
- qt - 如何自定义 QSlider 中的手柄颜色?
- node.js - Electron - IPC 改变对象
- rest - Partner Central rest api 401 未经授权的访问
- scala - scala中的Java对象序列化
- java - 如何在 Android Studio 中导入项目后修复错误