Python setuptools import error (Using NetBeans)

zaplec picture zaplec · Feb 6, 2010 · Viewed 40.1k times · Source

I tried to find a question that would answer to this question but wasn't succesful, so I made a new question.

I'm trying to compile my old Python Tic Tac Toe game in NetBeans, but I get the error message

ImportError: No module named setuptools

In my actual code I haven't imported a module named setuptools. As much as I understand the compiler generates a setup.py file and tries to use that setuptools module in there. How can I fix that problem?

I'm pretty sure that the problem isn't in the code as that same code worked perfectly the time when I actually made it and I haven't changed it after that.

Answer

Ned Deily picture Ned Deily · Feb 6, 2010

You need to install either setuptools or Distribute in your Python instance. Follow the directions at either web page.