[英]Zip a file in google colab
I'm trying to zip a file from google collab and then download it.我正在尝试从 google collab 压缩一个文件,然后下载它。 The original file is too large and takes forever to download normally.
原始文件太大,需要很长时间才能正常下载。 I'm having issues zipping it first.
我在先压缩它时遇到问题。
!zip -r '/content/folder/filename.zip'.
from google.colab import files files.download("filename")
That's how it worked for me这就是它对我有用的方式
!zip -r /content/your_data.zip /content/your_data.your_file_extension
I'm trying to zip a file from google collab and then download it.我正在尝试从 google collab 压缩文件,然后下载它。 The original file is too large and takes forever to download normally.
原始文件太大,需要很长时间才能正常下载。 I'm having issues zipping it first.
我在先压缩它时遇到问题。
!zip -r '/content/folder/filename.zip'.
from google.colab import files files.download("filename")
.zip '/content/folder/filename.zip' .zip '/content/folder/filename.zip'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.