Python Egg file Decompression

Source: Internet
Author: User

Unzip can do it.

Because the project needs to package some versions of the library, it is then sys.path.insert to refer to it (avoiding the upgrade package causing some old systems to collapse).

When the egg file is packaged, discovery is not available. But the __path__ property of the relevant module shows that the content is inside the egg, so it's possible that this is just a compressed package.

Google for a while, find out how to learn the pressure: https://mail.python.org/pipermail/chicago/2007-July/002301.html

That is, you can use the Unzip command.

====== PostScript ===========

Python's egg file is a bit like a jar file in Java and is a project packaged file for easy installation and deployment, and that's just how much excitement is given to how many pythoner. and setup tools is a tool that provides package management, or software.

An egg is a package that contains all the package data. In an ideal situation, egg is a zip-compressed file that includes all the required package files. However, in some cases, it is setuptools decided (or switched off) that the package should not be zip compressed. In these cases, the egg is just a simple, uncompressed subdirectory, but the contents are the same. With a single version you can easily convert and save a bit of disk space, but the egg directory is functionally and structurally identical.

Python Egg file Decompression

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.