小编Sia*_*sma的帖子

如何使用 Google Colab 解压 .gz 文件?

我下载了扩展名为 .gz 的英文 FastText 嵌入文件。当我打算使用 Google Colab 解压它时,出现以下错误:

Archive:  /content/drive/My Drive/New_ABCDM_Architec/cc.en.300.vec.gz End-of-central-directory signature not found.  Either this file is not a zipfile, or it constitutes one disk of a multi-part archive.  In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /content/drive/My Drive/New_ABCDM_Architec/cc.en.300.vec.gz or /content/drive/My Drive/New_ABCDM_Architec/cc.en.300.vec.gz.zip, and cannot find /content/drive/My Drive/New_ABCDM_Architec/cc.en.300.vec.gz.ZIP, period
\n!unzip  '/content/drive/My Drive/New_ABCDM_Architec/cc.fr.300.vec.gz'\n!unzip  '/content/drive/My Drive/New_ABCDM_Architec/cc.ar.300.vec.gz'\n
Run Code Online (Sandbox Code Playgroud)

我知道要使用!unzip该文件应该有 .zip 扩展名。我的问题是,如何解压缩 …

python unzip google-colaboratory

5
推荐指数
1
解决办法
9158
查看次数

标签 统计

google-colaboratory ×1

python ×1

unzip ×1