3

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?

0
2

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

sudo apt-get install python-apt
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
2
  • This works for Ubuntu 20.04
    – sergtech
    Jan 11 at 0:06
  • On openSUSE: sudo zypper install python38-distutils-extra Apr 13 at 18:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.