!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