I already have a zip of (2K images) dataset on a google drive. I have to use it in a ML training algorithm. Below Code extracts the content in a string format:
Try this:
!unpack file.zip
If its now working or file is 7z try below
!apt-get install p7zip-full !p7zip -d file_name.tar.7z !tar -xvf file_name.tar
Or
!pip install pyunpack !pip install patool from pyunpack import Archive Archive(‘file_name.tar.7z’).extractall(‘path/to/’) !tar -xvf file_name.tar