Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6929877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:22:28+00:00 2026-05-27T11:22:28+00:00

Since it is impossible to install pygtk via pip I tried to install it

  • 0

Since it is impossible to install pygtk via pip I tried to install it manually.

I downloaded the source tar from pypi and ran

./configure --prefix=/home/user/.pythonbrew/pythons/Python-2.7.2
make
make install

It installed alright, e.g. pygtk-demo is in my path. However whenever I try to import pygtk I get the following error:

>>> import pygtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pygtk

I seem to miss something or made an error. What do I have to do to be able to use pygtk?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:22:28+00:00Added an answer on May 27, 2026 at 11:22 am

    I do not use pip or pythonbrew, but here is my experience, hope it can help and maybe put you on the good path !

    The best option is to use the repository.
    Under ubuntu, this goes with synaptic or apt-get.

    When manually must be choosen, remember the pygtk is just a bridge to the gtk package, and this one must be installed first.
    Usually, it happens this way :

    • download gtk.zip, and unzip in a folder, say “gtk”.
    • add that folder “gtk” to your path

    that’s it, gtk is installed.
    now you can fasten it up with the blas/lapack math libs.
    You need a fortran compiler to do this.

    Then after, you may think of pygtk.

    But this one needs other py-things in order to run correctly, and they must also been installed first :

    • pyGobject : lets you communicate with gtk objects
    • pyCairo : handles the pretty fonts in the graphs, tables, …

    For all those py-something packages, the to-do way is always :

    • download, then unzip in a temporary folder
    • go to that temporary folder
    • python setyp.py make
    • python setup.py install

    I did this several times on ubuntu 8, 9, 10 and 11, with success, when versions of all the packages where compatible between each other, which was not always easy….

    If you can find “bundles” with all in it for your platform, give them your preference.

    Then, the first thing to do is to test in python :

    import gtk
    import pygtk
    

    Good luck !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to display 3 random images from SQLite database horizontally. Since it's impossible
Since it's impossible to capture text from a java canvas by using standard Windows
Okay, since it is impossible to talk to anyone on the phone or get
I am trying to implement an edge detection method. Since it is impossible to
Since input and raw_input() stop the program from running anymore, I want to use
Ok, so this question is actually targeted at google, but since its impossible to
I have exactly the same issue since 5 days, Impossible to import Users and
Since UIBarButtonItem doesn't subclass UIView , it's impossible to get at the normal characteristics
since memcpy should be highly optimized nowadays, does it still make sense to optimize
Since regular jQuery animations are not fluent on iOS ( .hide() , slideDown() ),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.