我尝试将云端硬盘中的大型zipfile解压缩到Colab中,并出现以下错误:
BadZipFile: zipfiles that span multiple disks are not supported
如何将大文件从云端硬盘解压缩到Colab中?
答案 0 :(得分:0)
我这样做有两个选择:
!unzip file_location -d file_destination #-d is for quite option.
或更详细的其他选择:
import zipfile
from google.colab import drive
drive.mount('/content/drive/')
zip_ref = zipfile.ZipFile("/content/drive/My Drive/ML/DataSet.zip", 'r')
zip_ref.extractall("/tmp")
zip_ref.close()