6

I have installed Python 2.7, setuptools and python-distutils-extra.

When I try to run ./setup.py build to compile C I get following error:

Traceback (most recent call last):
  File "./setup.py", line 26, in <module>
    from DistUtilsExtra.command import *
ImportError: No module named DistUtilsExtra.command

I beleive it has something to do with paths, but I am fairly new to Linux OS.

I am working on source /opt/project_name/bin/activate. It is a Django project.

Any ideas?

Sylvain Pineau
  • 61,564
  • 18
  • 149
  • 183
saki_theflaki
  • 63
  • 1
  • 1
  • 3

2 Answers2

4

nowadays (2020) it is this (Python v2):

sudo apt-get install python-distutils-extra

or this (Python v3):

sudo apt-get install python3-distutils-extra
hoijui
  • 153
  • 6
3

As per this page, it is suggested to install python-apt through aptitude itself:

sudo apt-get install python-apt
Tom
  • 46
  • 2