【发布时间】:2013-04-04 18:17:39
【问题描述】:
我最近在我的 Ubuntu 12.04(64 位)上安装了 EPD 7.3-2(免费版)。 我在尝试使用 ipython 时遇到了一些问题,出现以下错误:
ImportError: Gtk* 后端需要安装 pygtk。
所以我找到了这篇文章:
https://support.enthought.com/entries/22961778-epd-for-mac-os-x-32-and-64-bit-versions
甚至认为它适用于 Mac OSX,它确实在我的 Linux 机器上运行。我所做的修改是这样放置后端:
backend : Qt4Agg #GTKAgg
backend.qt4 : PySide
所以它曾经是 GTKAgg。但现在我有一个新问题。当我尝试用 pylab 绘制一个简单的图时,例如:
from pylab import *
plot([1,2,3])
show()
什么都没有弹出...我收到以下错误:
atexit._run_exitfuncs 中的错误:回溯(最近一次调用最后一次):
文件 "/home/mela/Librairies/epd_free-7.3-2-rh5-x86_64/lib/python2.7/atexit.py", 第 24 行,在 _run_exitfuncs func(*targs, **kargs) 文件“/home/mela/Librairies/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/matplotlib/_pylab_helpers.py”,第 82 行,在 destroy_all manager.destroy() 文件“/home/mela/Librairies/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/matplotlib/backends/backend_qt4.py”, 第 367 行,在销毁中 self._widgetclosed)RuntimeError:内部 C++ 对象 (PySide.QtGui.QMainWindow) 已删除。
sys.exitfunc 中的错误: Traceback(最近一次通话最后一次):文件 "/home/mela/Librairies/epd_free-7.3-2-rh5-x86_64/lib/python2.7/atexit.py", 第 24 行,在 _run_exitfuncs func(*targs, **kargs)
文件“/home/mela/Librairies/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/matplotlib/_pylab_helpers.py”,第 82 行,在 destroy_all manager.destroy()
文件“/home/mela/Librairies/epd_free-7.3-2-rh5-x86_64/lib/python2.7/site-packages/matplotlib/backends/backend_qt4.py”, 第 367 行,在销毁中 self._widgetclosed)RuntimeError:内部 C++ 对象 (PySide.QtGui.QMainWindow) 已删除。
我真的不明白这是什么意思或我应该怎么做。 任何线索将不胜感激。
【问题讨论】:
标签: python-2.7 64-bit ubuntu-12.04 enthought epd-python