[PEAK] installation troubles / how to uninstall setup tools

Karl Pietrzak kap4020 at rit.edu
Thu Feb 9 17:04:49 EST 2006


Hey everyone!

So I guess there are two parts to this email.  One of them is to explain how I 
couldn't get setuptools to work (1), and the other to ask for directions on 
uninstalling it (2).

1. Overall, I would like to say that the documentation on installing and using 
Python eggs is very poor.  I ended up Googling for "installing Python eggs" 
and I used http://funkload.nuxeo.org/INSTALL.html .

# wget http://peak.telecommunity.com/dist/ez_setup.py
--16:49:42--  http://peak.telecommunity.com/dist/ez_setup.py
           => `ez_setup.py'
Resolving peak.telecommunity.com... 64.239.5.21
Connecting to peak.telecommunity.com|64.239.5.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8,329 (8.1K) [text/plain]

100%[===============================================================================================================>] 
8,329         --.--K/s

16:49:42 (228.21 KB/s) - `ez_setup.py' saved [8329/8329]

# sudo python ez_setup.py
Password:
Downloading 
http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6a9-py2.4.egg
Processing setuptools-0.6a9-py2.4.egg
creating /usr/lib64/python2.4/site-packages/setuptools-0.6a9-py2.4.egg
Extracting setuptools-0.6a9-py2.4.egg to /usr/lib64/python2.4/site-packages
Installing easy_install script to /usr/bin

Installed /usr/lib64/python2.4/site-packages/setuptools-0.6a9-py2.4.egg

Because this distribution was installed --multi-version or --install-dir,
before you can import modules from this package in an application, you
will need to 'import pkg_resources' and then use a 'require()' call
similar to one of these examples, in order to select the desired version:

    pkg_resources.require("setuptools")  # latest installed version
    pkg_resources.require("setuptools==0.6a9")  # this exact version
    pkg_resources.require("setuptools>=0.6a9")  # this version or higher

Processing dependencies for setuptools==0.6a9
Setuptools version 0.6a9 or greater has been installed.
(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)
# easy_install /tmp/matplotlib-0.86.2-py2.4-linux-i686.egg
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 5, in ?
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
# python
Python 2.4.1 (#1, Sep 12 2005, 23:33:18)
[GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ez_setup import use_setuptools

---------------------------------------------------------------------------
This script requires setuptools version 0.6a9 to run (even to display
help).  I will attempt to download it for you (from
http://cheeseshop.python.org/packages/2.4/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.
---------------------------------------------------------------------------
Downloading 
http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6a9-py2.4.egg
>>>

At this point I just gave up, which leads me to my next question.

2. How do I uninstall the setuptools now installed on my machine?

Thanks everyone!

System specs:
SuSE 10.0 x86_64



More information about the PEAK mailing list