在OS X上的python 2.7上新增了Scipy/numpy/matplotlib。我正在嘗試import pylab
,但它似乎沒有工作。爲什麼是這樣?Scipy/Pylab錯誤..預計在:動態查找?
我得到的錯誤是:
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py",
> line 1, in <module>
> from matplotlib.pylab import * File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py",
> line 216, in <module>
> from matplotlib import mpl # pulls in most modules File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mpl.py",
> line 2, in <module>
> from matplotlib import axis File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/axis.py", line 10, in <module>
> import matplotlib.font_manager as font_manager File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py", line 52, in <module>
> from matplotlib import ft2font ImportError:
> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so,
> 2): Symbol not found: _FT_Attach_File
> Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so
> Expected in: dynamic lookup