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

查看:32
本文介绍了如何在 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.

推荐答案

您可以使用 PyLZMApy7zlib 库来提取 7z 文件或尝试使用 python subprocess 模块执行 shell 脚本来提取 zip 文件.

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天全站免登陆