我正在使用 Debian 6.04 和 Python 2.7我
在控制台中
编译了 Python 2.7 ,(./configure,make,make install) :
>python2.7
Python 2.7.3 (default, Jul 28 2012, 16:54:06)
[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
如何在 Python 2.7 中安装 gtk?
在 Python 2.6 中:
tiger@debian:~$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> import pygtk
>>> import gobject