【问题标题】:Python GObject Introspection for Windows 7适用于 Windows 7 的 Python GObject 内省
【发布时间】:2016-01-21 16:32:08
【问题描述】:

我正在尝试在 Python 中使用 matplotlib,但任何导入都失败并出现以下错误:

from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\matplotlib\backends\backend_gtk3cairo.py", line 6, in <module> 
from . import backend_gtk3
  File "C:\Python27\lib\site-packages\matplotlib\backends\backend_gtk3.py", line 21, in <module>
    "Gtk3 backend requires the GObject introspection bindings for Gtk 3 "
ImportError: Gtk3 backend requires the GObject introspection bindings for Gtk 3 to be installed.

应用程序需要能够在 Windows 机器上运行。有人对此有任何支持吗?

我发现很多老线程说不可能在 Windows 上使用GTK3 和 Python,但它们至少有 2-3 年的历史。所以从那以后事情可能会发生变化。

【问题讨论】:

  • 没有人在windows下用matplotlib编译gtk3?在这里需要一些帮助!

标签: python windows matplotlib gobject gobject-introspection


【解决方案1】:

通过使用来自http://sourceforge.net/projects/pygobjectwin32/files/pygi-aio-3.14.0_rev22-setup.exe 的 pygi-aio 安装程序并卸载任何其他较旧的依赖项(GTK2、pygobject 等)解决

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-21
    • 2011-09-23
    • 2014-06-04
    • 1970-01-01
    • 2010-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多