【发布时间】:2021-12-26 02:13:47
【问题描述】:
我下载了带有 .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
我知道要使用!unzip,该文件应具有 .zip 扩展名。我的问题是,如何解压 .gz 文件?
【问题讨论】:
-
!gunzip filename或tar -xzf filename? -
@GhostOps 感谢您的回复。 “!gunzip”对我有用。
标签: python google-colaboratory unzip