【问题标题】:I have a large zip file of 13 GB i need to extract it in gdrive on google colab. I have tried unzip but it didn't work. i tried 7zip it giving error我有一个 13 GB 的大 zip 文件,我需要在 google colab 的 gdrive 中提取它。我已经尝试解压缩,但它没有工作。我试过 7zip 它给出错误
【发布时间】:2020-08-07 17:35:48
【问题描述】:
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) 
    Xeon(R) CPU @ 2.20GHz (406F0),ASM,AES-NI)

    Scanning the drive for archives:
    1 file, 13510573713 bytes (13 GiB)

    Extracting archive: image_train.zip
    --
    Path = image_train.zip 
    Type = zip
    Physical Size = 13510573713
    64-bit = +


    ERROR: Unknown error -2147024894

    Archives with Errors: 1

似乎其中一个文件已损坏,这就是它给出此错误的原因。我怎样才能忽略损坏的文件?或者是否有其他方法?

【问题讨论】:

  • 你检查我的答案了吗?是否有帮助或需要更多支持?
  • 实际上没有。我试过你的答案它适用于小尺寸文件..在提取一些文件后在较大的存档上它给出了这个错误`文件#1207565:错误的zipfile偏移(本地标头sig):9570252890文件#1207566:错误的zipfile偏移量(本地标头sig ): 9570254437 文件 #1207567: 错误的 zipfile 偏移量 (本地标头 sig): 9570255044 文件 #1207568: 错误的 zipfile 偏移量 (本地标头 sig): 9570256141 文件 #1207569: 错误的 zipfile 偏移量 (本地标头 sig): 9570256786 文件 #1207570: zipfile 偏移量(本地标头 sig):9570257539`

标签: zip google-colaboratory unzip 7zip


【解决方案1】:

您可以使用以下命令导入 zipfile 并解压。这些命令对我有用。

import zipfile
!unzip My_big_file.zip -d My_extracted_file

【讨论】:

    猜你喜欢
    • 2020-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-28
    • 1970-01-01
    • 2019-03-09
    • 2021-04-02
    相关资源
    最近更新 更多