OS X上的Matplotlib.pyplot与Python.org的64位Python

Kit*_*Kit 9 python macos matplotlib

我刚安装numpymatplotlib我的OS X 10.6.6.我有来自Python.org的Python 2.7.当我这样做时import matplotlib.pyplot,我收到以下错误:

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so, 2): no suitable image found.  Did find:
        /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_path.so: no matching architecture in universal wrapper
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?我该如何解决?

更新1(2011年3月25日):
matplotlib交互式绘图系统使用Tcl/Tk/Tkinter提供GUI.我安装了64位Python,但我错过了Python.org下载页面link1,link2中的以下警告: http://www.python.org/download/releases/2.7.1/
http://www.python.org/download/mac/tcltk/
因此,我删除了64位版本并安装了32位版本.我建议保持这个问题,以防万一64位Tcl/Tk/Tkinter出现在Python 2.7中.

YOn*_*Ong 0

我认为 matplotlib 包根本不在你的 sys.path 中。完全删除你的 matplotlib,然后重新安装它。