Colab 谷歌云盘解压rar zip文件到Colab中

 

文件结构

 

 

 

解压rar文件

!pip install pyunpack
!pip install patool
from pyunpack import Archive
Archive('/content/drive/My Drive/NTS_Net.rar').extractall('/content/Keras-NTS-Net')

 

解压zip文件

!unzip '/content/drive/My Drive/NTS_Net.rar' '/content/Keras-NTS-Net'

 

感谢:

https://stackoverflow.com/questions/50315989/how-to-extract-rar-files-inside-google-colab

 

posted @ 2020-07-18 19:45  电脑前的眼镜男  阅读(2336)  评论(0编辑  收藏  举报