[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 ez_setup.py ).

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" <mathieu.malaterre@gmail.com>
To: <backports-users@lists.backports.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
$ easy_install
Traceback (most recent call last):
 File "/usr/bin/easy_install", line 4, in ?
   import pkg_resources
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
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.

Thanks !

Reply to: