简体   繁体   English

Python - 创建 zip 文件

[英]Python - create zip file

I'm running python 3.6.9 on Ubuntu and I wish to create a zip file (based on 2 files).我在 Ubuntu 上运行 python 3.6.9,我希望创建一个 zip 文件(基于 2 个文件)。

I'm running pip3 install ZipFile and I'm getting the following error我正在运行 pip3 install ZipFile 并收到以下错误

> Collecting ZipFile   Could not find a version that satisfies the
> requirement ZipFile (from versions: ) No matching distribution found
> for ZipFile

If i can not update my python version - which module I can use?如果我无法更新我的 python 版本 - 我可以使用哪个模块?

zipfile is included in the python standard library, you don't have to install it. zipfile包含在 python 标准库中,您不必安装它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM