首页 > 解决方案 > 如何 tar 目录

问题描述

我想将我下载的两个目录 tar 到我的程序中。我在类似于 tensorflow 的 Colab 环境中工作。但是当我运行以下命令时

!tar -zxf ./RoadDamageDataset.tar.gz
!tar -zxf ./trainedModels.tar.gz

我收到这种类型的错误

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

到目前为止,我已经尝试在没有的情况下运行上述命令,-但它不起作用。另外在某处我读到文件可能没有正确下载,所以我仔细检查了文件并再次下载了两次,但仍然存在此错误。

这里的任何人都可以帮助我解决这种问题,因为我不知道如何处理tar

谢谢

标签: python-3.xlinux-kernelgoogle-colaboratory

解决方案


推荐阅读