google colaboratory - Load a Kaggle dataset into Colab notebook without extracting it - Stack Overflow

admin2025-04-30  2

When I run the following code, it downloads the zipped dataset, automatically extracts it after finishing the download, and delete the zip file.

import kagglehub
data_path = ""
path = kagglehub.dataset_download(file)

print("Path to dataset files:", path)

Is there any way to only download it in the zip form without extracting it?

转载请注明原文地址:http://anycun.com/QandA/1746028702a91556.html