how to compile pygtk in python2.7?

contro opinion contropinion at gmail.com
Sun Jul 8 00:47:08 EDT 2012


1.download  pygtk

2.cd /home/tiger/pygtk-2.24.0

3.PYTHON=/usr/bin/python2.7  ./configure --prefix=/usr
4. make
5. make install

*tiger at ocean:~$ python2.7
Python 2.7.3 (default, Jul  1 2012, 14:13:18)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gtk
>>> *

 i can't compile pygtk in python2.7,how to compile it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120708/54141cd8/attachment.html>


More information about the Python-list mailing list