jupyter解压缩文件:
!tar -zxvf xxx.tar.gz
出现错误:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
原因:
文件压缩的过程中压缩格式不同,后来改了后缀名
解决:
查看文件类型格式:
!file './ccpd/train_2w.tar.gz'
输出:
./ccpd/train_2w.tar.gz: POSIX tar archive (GNU)
解压到指定文件夹:
!tar -xvf './ccpd/train_2w.tar.gz' -C './ccpd/Train'



