Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some troubles installing python2.7 on ubuntu 10.10 I ran sudo apt-get install python2.7(*) but when I try to run an example program I get the

 ~/Downloads% python2.7
 Traceback (most recent call last):  
 File "", line 1, in
     import pygtk ImportError: No module named pygtk

error messages, so what's the best way to install python and its modules?

share|improve this question

It looks like there are a few broken or missing things regarding pygtk with Python2.7 under Maverick (pygobject-dev maybe).

Unless you really need Python2.7, you will save yourself a lot of stress using the Python2.6 version of pygtk included in Maverick.

share|improve this answer

Your Answer


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.