Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Im new to linux but i like it more than windows. Im trying to install keryx to download update packages for my laptop which i install ubuntu on it yesterday. but while install the setup.py. terminal gives a url which it says that i should install it. But the problem when installing it was:

skadush@ubuntu:~/python-distutils-extra-2.35$ python setup.py
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from setuptools import setup
ImportError: No module named setuptools
skadush@ubuntu:~/python-distutils-extra-2.35$ 

What does it mean?

share|improve this question
    
Ubuntu has repos. You don't need to externally update software. Use software updates –  Ramchandra Apte Aug 8 '12 at 5:36
    
Since you ran python (to run the setup.py script), you already have python installed. I edited the title of your question to reflect this. I would advise against keryx. You probably don't need it, and it hasn't been updated in a year and a half. –  dsh Aug 8 '12 at 16:06
add comment

3 Answers

Try a clean python install first remove current python

sudo apt-get purge python

Then run

sudo apt-get install python-all

If this dose not remove python try synaptic package manager

sudo apt-get install synaptic

Search python in the box and tick/untick any wanted/unwanted packages and click apply

Python 3.0 is recommended as the next Ubuntu release will only support this.

Python 2 should already be installed a good way to test this is open a G-edit and copy this in to the file print "hello" then save the file as test.py. open a terminal then drag and drop the file into it and press enter, if the terminal displays Hello python is installed and working.

share|improve this answer
add comment

The message simply indicates that you don't have python-setuptools installed. The python package mentioned comes from that Ubuntu package.

python-setuptoolsInstall python-setuptools.

The advice in the other answers to install everything from Ubuntu repositories is wise.

share|improve this answer
add comment

You should install programs from Ubuntu repositories with Ubuntu Software Centre or apt-get. Ubuntu Software Centre like Android market or Apple app store. It can be found at left in Main menu.
And if you get on well with console, use apt-get:

sudo apt-get install python
pythonInstall python

ohh You should install python-setuptools module. try:

sudo apt-get install python-setuptools python-distutils-extra

python-setuptoolsInstall python-setuptools and python-distutils-extraInstall python-distutils-extra

but you were trying install from tarball - the wrong way

share|improve this answer
    
i tried but it says that the follwing application are currently installed –  thenewbie Aug 8 '12 at 5:25
    
then you pretty much have python installed, and you can access it by opening a terminal and typing python in it. –  NlightNFotis Aug 8 '12 at 8:09
    
see. I changed my post. –  andreykyz Aug 8 '12 at 10:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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