我正在使用 Python3.4
。我试图打开一个应用程序,据说它使用了 Python
,但似乎无法正常工作。我收到以下错误信息:
Traceback (most recent call last):
File "pychess", line 24, in <module>
gi.require_version("Gtk", "3.0")
AttributeError: 'module' object has no attribute 'require_version'
我正在使用 Python3.4
。我试图打开一个应用程序,据说它使用了 Python
,但似乎无法正常工作。我收到以下错误信息:
Traceback (most recent call last):
File "pychess", line 24, in <module>
gi.require_version("Gtk", "3.0")
AttributeError: 'module' object has no attribute 'require_version'
sudo pip install PyGTK
。一切都开始正常工作了。 - João Cartucho