4
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?

5
  • 1
    What did you do to get that error?. Jul 21 '15 at 6:21
  • i am trying install seafile, but get that error message. anyway how to know python-setuptools install properly?
    – Ivan
    Jul 22 '15 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. Jul 22 '15 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
    Jul 22 '15 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. Jul 22 '15 at 16:02
5

Run this command:

sudo pip install -U setuptools

This command install the required dependence.

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.