相关疑难解决方法(0)

为什么python3不能导入gi.repository?

Python2 没有遇到同样的问题。

greg@greg-precise:~$ python3

Python 3.2.3 (default, May  3 2012, 15:51:42) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> from gi.repository import Gtk

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gi.repository
Run Code Online (Sandbox Code Playgroud)

(为清晰起见添加了换行符)

python gtk 12.04 application-development

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

12.04 ×1

application-development ×1

gtk ×1

python ×1