Re: ImportError: No module named pkg_resources
Just uninstall the python-setuptools package:
apt-get --purge remove python-setuptools
Then download ez_setup.py from somewhere (google for it, you will find many
locations, for example: http://www.turbogears.org/download/ez_setup.py ),
then run it with your desired python version ( for example: python2.3
It will install the latest version of setuptools and easy_install will work
fine. There will be different versions of easy_install script for each
installed version of python. For example: easy_install-2.4
Note that easy_install will install python packages in the non-apt way, but
they should work fine this way too.
----- Original Message -----
From: "Mathieu Malaterre" <firstname.lastname@example.org>
Sent: Friday, April 06, 2007 4:28 PM
Subject: ImportError: No module named pkg_resources
I mistakely reported a problem to debian:
and was asked to forward it here.
I was able to install python-setuptools, but I believe this is not
possible on a debian stable system.
$ sudo apt-get install python-setuptools
Traceback (most recent call last):
File "/usr/bin/easy_install", line 4, in ?
ImportError: No module named pkg_resources
I cannot find pkg_resources in stable. I can find it in unstable though:
IMHO python-setuptools should depend on a newer python version is my
Python 2.3.5 (#2, Oct 16 2006, 19:19:48)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.