ivan@MS-7640:~$ python -V
Python 2.7.10

sudo apt-get install python-setuptools
[sudo] password for ivan: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-setuptools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

but I get this error message :

Checking python module: setuptools ... 
 setuptools  is not installed, Please install it first.

On Debian/Ubntu: apt-get install python-setuptools
On CentOS/RHEL: yum install python-distribute

Error occured during setup. 
Please fix possible problems and run the script again.

How to fix it?

  • 1
    What did you do to get that error?. Commented Jul 21, 2015 at 6:21
  • i am trying install seafile, but get that error message. anyway how to know python-setuptools install properly?
    – Ivan
    Commented Jul 22, 2015 at 12:20
  • Just type 'easy_install --help' in the console. But again how are you trying to install seafile, it looks like you are trying to compile it from source. Commented Jul 22, 2015 at 12:29
  • yeah you right, anyway i upgrade python 2.7.6 (default) to 2.7.10 i do this upgrade compile it from source too, i think thats cause of this problem. what should i do? should i reinstall ubuntu?
    – Ivan
    Commented Jul 22, 2015 at 13:29
  • If you compiled python from source then it's likely that you installed it with 'make install' to another place (unless you created a deb file and installed it). IF this did happen then you have 3 different python installs on your system (both python2.7 probably mixed). Apt-get will install libraries to the default one, so you will need to install setuptools to your 2.7.10 install, again by compiling from source. But yes chances are that you made a mess out of your system. Commented Jul 22, 2015 at 16:02

1 Answer 1


Run this command:

sudo pip install -U setuptools

This command install the required dependence.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .