is there a standard way to "install" egg-files under windows ?

Diez B. Roggisch deets at nospam.web.de
Wed May 30 14:31:17 EDT 2007


Stef Mientki schrieb:
> hello,
> 
> after 4 months playing around with Python,
> and I still have troubles with egg files.
> Sometimes it works, sometimes it doesn't.
> 
> If I google on "python egg", I get lost of links,
> which contains huge pages of information,
> and I'm totally scared off.
> 
> I've used several methods,
> the last one, success with 1 egg file, no success with another egg-file:
> - download ez_setup.py and put it in a sub-directory of the Python path
> - open an Python IDE
> - open the ez_setup.py in the IDE
> - dump the egg files in the same directory as ez_setup.py
> - set in the IDE, the commandline parameters to the egg-filename (no path)
> - run ez_setup.py in the IDE
> 
> Can someone tell how to install an egg file in just 1 line ?
> Or even better, can there be an icon on the desktop, where I just can 
> drop the egg-file ?

setuptools - which you install using the ez_setup.py - will install a 
script called easy_install. Under unix, this is installed in /usr/bin, 
I'm not sure where it is installed under windows - go use a search.

But this script takes an egg-file as argument, and installs it.

So - either open the shell of your choice and type

easy_install <egg>

or maybe you can even use that via drag-n-drop to a desktop-link to that 
easy_install-script, as dropping an egg over a program icon should pass 
that as first argument.


Diez



More information about the Python-list mailing list