472,125 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,125 software developers and data experts.

How to decompress .Z file?

Hi, all

How can .Z file be decompressed?

According to python library reference, .Z file might not be supported by
python, yet.

Best,
Hyunchul Kim
Aug 20 '07 #1
2 5282
On Aug 20, 9:02 am, Hyunchul Kim <sun...@sfc.keio.ac.jpwrote:
How can .Z file be decompressed?

According to python library reference, .Z file might not be supported by
python, yet.

Guess you can *outsource* the process to 7zip:

http://7-zip.org/download.html

It supports .z archives.

Lorenzo

Aug 20 '07 #2
Hyunchul Kim <su****@sfc.keio.ac.jpwrote:
How can .Z file be decompressed?
The old unix program compress used to generate these files.

http://packages.debian.org/unstable/utils/ncompress

You'll find the command line programs gzip/gunzip/zcat can decompress
them too.
According to python library reference, .Z file might not be
supported by python, yet.
Unfortunately the python gzip library doesn't read .Z files.

I'd pipe the data to zcat using subprocess to decompress from python.

I haven't used a .Z files for many many years - where are you getting
them from?

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Aug 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by enrio | last post: by
reply views Thread by JBear | last post: by
4 posts views Thread by Frederik Vanderhaegen | last post: by
1 post views Thread by Carly | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.