如何在Python 2.7.3版本中解压缩7z zip文件 [英] How to extract 7z zip file in Python 2.7.3 version

查看:688
本文介绍了如何在Python 2.7.3版本中解压缩7z zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在python中提取7z zip文件。请让我知道那里有任何库。

How to extract 7z zip file in python .Please some one let me know is there any library for that.

我在python 2.7.3中安装了libarchive库。版本。但是我无法使用该库。

I have install libarchive library in python 2.7.3 version . But i am not able to use that library.

推荐答案

您可以使用 PyLZMA py7zlib 库来提取 7z 文件,或尝试执行shell脚本以使用python <$ c $来提取zip文件。 c> subprocess 模块。

You can use PyLZMA and py7zlib libraries to extract 7z file or try executing shell scripts to extract zip file using python subprocess module.

这篇关于如何在Python 2.7.3版本中解压缩7z zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆