ImportError: No module named setuptools

Problem:

Traceback (most recent call last):
File “setup.py”, line 1, in
from setuptools import setup, find_packages
ImportError: No module named setuptools

Solutions:

wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar zxvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py build
python setup.py install

Hope this helps someone out there ;)

8 Comments

  1. American Yak:

    Thanks!

  2. Rob Rasner Magic Castle:

    Usually don’t post upon blog sites,\ but I would really like to express this article really convinced us to do so! Congratulations, fairly nice post….

  3. FilKr:

    Very useful! Was trying to setup MySQLdb package and was getting the ImportError: No module named setuptools.
    Following your post and setting up setuptools solved the problem. Thank you!

  4. ratz:

    First of all, thanks for the great article. Just wanted to share another method which I used:

    Downloaded the ‘egg’ file (setuptools-0.6c11-py2.6.egg) from http://pypi.python.org/pypi/setuptools#files and did this instead:

    bash setuptools-0.6c11-py2.6.egg

    Cheers.

  5. hunde:

    Thank you

  6. Julio Sanchez:

    Muchas gracias por esta ayuda… Logre instalar el Openerp 6.0.3

    Estoy a sus ordenes en Guadalajara, Jalisco. MX

  7. Ted:

    thanks!!

  8. jayesh:

    Thank u very much….

Leave a comment