import zipfile with zipfile.ZipFile("dataset.zip", 'r') as zip_ref: zip_ref.extractall(".")