我有一个13GB的大zip文件,我需要在谷歌colab的gdrive解压。我试过解压,但它没有工作。我试过7zip,它给错误的

问题描述 投票:0回答:1
    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

好像有一个文件损坏了,所以才会出现这样的错误。

zip google-colaboratory unzip 7zip
1个回答
0
投票

你可以用以下命令导入zip文件并解压。这些命令对我来说是有效的。

import zipfile
!unzip My_big_file.zip -d My_extracted_file
© www.soinside.com 2019 - 2024. All rights reserved.