Pages

Wednesday, September 2, 2009

Python egg is:

If you don’t know what a Python egg is, it’s simply a way of distributing Python packages, similar to RPM. There is also an easy method of installing them, using easy_install.

Where do I find Python Eggs?

You can find Python Eggs on quite a few places on the web, e.g. at a package author’s website. The biggest repository of eggs is the Cheeseshop (or PyPI) though), an index for Python packages. In order to be able to install eggs you simply need to install easy_install which is easily done by downloading ez_install.py (you can download it here) and calling it (you need to have rights to install components in your python installation of course).

Once you have done this you can simply install an egg by calling:

easy_install somepackage.egg

You can also give a URL to an egg and use

easy_install http://somehost.somedomain.com/somepackage.egg

If an egg is not found at that location or in the directory you give, easy_install will automatically query the Cheeseshop for the egg location. So if you want to install SimpleJSON you simply give

easy_install simplejson

and it will download and install the most recent version. If you are not running as root and you have Python installed as root you of course need to use something like “sudo easy_install” instead (e.g. on MacOSX).

A great additional feature is also that Eggs can define dependancies on other packages which easy_install will then try to automatically download and install aswell.

BTW, the easy_install program is part of the setuptool package by Philip Eby and is based on the distutils package which is part of the standard python distribution.

refer more : click here

http://onlamp.com/pub/a/python/2005/01/27/ipython.html

============================================
try this to install ipython for python2.4
=============================================

[root@root]# wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c9-py2.4.egg

[root@root]# sh setuptools-0.6c9-py2.4.egg

[root@root]# easy_install-2.4 http://ipython.scipy.org/dist/ipython-0.8.4-py2.4.egg

[root@webdev tgzfiles]#

2 comments:

Anilkumar Naik said...

http://pypi.python.org/pypi/setuptools

Anilkumar Naik said...

http://pypi.python.org/pypi/setuptools#id3