Skip to content Skip to sidebar Skip to footer

How To Unzip Python Eggs?

I'm trying to bundle some egg dependencies when using py2exe and as stated on the py2exe site, it doesn't work with those and I need to unzip them first. I've tried to first run ea

Solution 1:

Quick hack/workaround: egg files are just zip files, so you can use the python zipfile module to unzip them. Maybe you could rename the easy_install file to "easy_install_pre.exe", and create a new .bat file named "easy_install.bat":

easy_install_pre.exe %1
unzip_eggs.py %1

Solution 2:

The zippped package file should be first removed before reinstalling. Then is is easy.

All methods of unzipped installation described in the question should work if the zipped package is removed first but does not work without it. Reinstallation of zipped package after unzipped installation is on the contrary possible by normal upgrade without need to remove anything. This was typical for some old easy_install versions related appoximately to period of Python 2.5.


Post a Comment for "How To Unzip Python Eggs?"