Mac OS X 10.9上的ipython + qt

时间:2014-02-17 10:29:49

标签: macos qt matplotlib ipython anaconda

我正在尝试使用anaconda在Mac OS X 10.9上使用qt matplotlib后端运行ipython。

如果我尝试直截了当的做法,我会收到错误:

import matplotlib
matplotlib.use('Qt4Agg')
from matplotlib import pyplot
pyplot.plot()

Qt internal error: qt_menu.nib could not be loaded. The .nib file should be placed in QtGui.framework/Versions/Current/Resources/  or in the resources directory of your application bundle.
Abort trap: 6

如果我使用python.app代替ipython,我可以获得一个qt窗口,但它不会绘制任何内容。

This post报告了类似的错误,但是那里发布的答案无效。如果shebang调用使用pythonwpython.app,则IPython甚至不会运行;它声称语法错误:line 6: syntax error: unexpected end of file

那么,如何让ipython + matplotlib + qt运行?

0 个答案:

没有答案
相关问题