我有一个 13 GB 的大 zip 文件,我需要在 google colab 上的 gdrive 中将其解压缩。我试过解压缩,但没有用。我试过 7zip 它给出了错误
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
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
it seems like one of the file is corrupt that's why it's giving this error. how can i ignore a corrupt file ?or if there is any other way?
您可以使用以下命令导入 zip 文件并解压缩。这些命令对我有用。
import zipfile
!unzip My_big_file.zip -d My_extracted_file
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
it seems like one of the file is corrupt that's why it's giving this error. how can i ignore a corrupt file ?or if there is any other way?
您可以使用以下命令导入 zip 文件并解压缩。这些命令对我有用。
import zipfile
!unzip My_big_file.zip -d My_extracted_file