python-3.x - 如何 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
。
谢谢
解决方案
推荐阅读
- java - spring-aot-maven-plugin 在 mvn clean 包上失败
- reactjs - 我正在尝试使用 http 格式向 api 发送请求,但我的反应项目发送为 https
- python - 表情符号支持从 python 中读取文件?
- vue.js - 与 v-system-bar 一起使用并设置 hide-on-scroll 时,如何将 v-app-bar 固定到顶部?
- html - 如何从 iframe 禁用 youtube 链接
- jackson - 使用 quarkus-smallrye-openapi 对 Quarkus 进行单元测试,导致 InvalidDefinitionException Java 8 日期/时间类型 `java.time.LocalDate` 不支持
- python - 根据字符串+数字的索引对熊猫数据框进行排序
- python - 字符串格式不能正确处理四舍五入的 Numpy Float32?
- spring-boot - 使用 rest 控制器 spring boot 处理继承
- nodemailer - 与 nodemailer 的角接触表