压缩文件与PPMD压缩,以编程方式解压缩

编程入门 行业动态 更新时间:2024-10-27 19:29:02
本文介绍了压缩文件与PPMD压缩,以编程方式解压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个Linux Python脚本,需要解压缩一些zip文件。我正在使用zipfile模块。在这些文件中的一些我得到:

BadZipfile:不支持的压缩方法98文件

搜索这些文件似乎是使用方法98 PPMD​​压缩。我想如果python不能做到这一点,我会做一个黑客系统调用解压缩6.0并完成它。此错误:

skipping:fileName`PPMd'方法不支持

我试过7zip:

提取fileName不支持的方法

我以为我用命令行实用程序ppmd命中了pay-dirt,但是:

用于文本数据的快速PPMII压缩器,变体I,2009年11月6日分段故障 pre>

还有什么我可以试试吗? WinZip在Windows中没有这些文件的问题,但我需要在Linux中这样做。

解决方案

p7zip(二进制)?

似乎支持PPMD压缩格式。

一些PPMd开关:-mmem = 24b,-mmem = 24k,-mmem = 24m,-mo = 2和-mo = 32

I have a Linux Python script that needs to unzip some zip files. I was using the zipfile module. On a few of these files I'm getting:

BadZipfile: Unsupported compression method 98 for file

Searching around it seems these files are using Method 98 PPMD compression. I figured if python couldn't do it, I'd make a hack system call to unzip 6.0 and be done with it. This errors:

skipping: fileName `PPMd' method not supported

I've tried 7zip:

Extracting fileName Unsupported Method

I thought I hit pay-dirt with a command line utility ppmd, but:

Fast PPMII compressor for textual data, variant I, Nov 6 2009 Segmentation fault

Anything else I can try? WinZip in windows has no problem with these files, but I need to do this in Linux.

解决方案

Have you taken a look at the p7zip (binary)?

It seems to support the PPMD compression format.

Some PPMd switches: -mmem=24b, -mmem=24k, -mmem=24m, -mo=2, and -mo=32

更多推荐

压缩文件与PPMD压缩,以编程方式解压缩

本文发布于:2023-10-30 01:17:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1541338.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:解压缩   压缩文件   方式   PPMD

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!