OS X中IDE pycharm中import pylab as pl报错如下:
ImportError Traceback (most recent call last)
<ipython-input-7-2cf12a0af6ff> in <module>()
----> 1 import pylab as pl
/Users/eric/anaconda/lib/python3.4/site-packages/
pylab.py in <module>()
----> 1 from matplotlib.pylab import *
2 import matplotlib.pylab
3 __doc__ = matplotlib.pylab.__doc__
/Users/eric/anaconda/lib/python3.4/site-packages/matplotlib/
pylab.py in <module>()
229 # make
mpl.finance module available for backwards compatability, in case folks
230 # using pylab interface depended on not having to import it
--> 231 import
matplotlib.finance 232
233 from matplotlib.dates import date2num, num2date,\
/Users/eric/anaconda/lib/python3.4/site-packages/matplotlib/
finance.py in <module>()
36 from matplotlib.dates import date2num
37 from matplotlib.cbook import iterable, mkdirs
---> 38 from matplotlib.collections import LineCollection, PolyCollection
39 from matplotlib.colors import colorConverter
40 from matplotlib.lines import Line2D, TICKLEFT, TICKRIGHT
/Users/eric/anaconda/lib/python3.4/site-packages/matplotlib/
collections.py in <module>()
25 import matplotlib.artist as artist
26 from matplotlib.artist import allow_rasterization
---> 27 import matplotlib.backend_bases as backend_bases
28 import matplotlib.path as mpath
29 from matplotlib import _path
/Users/eric/anaconda/lib/python3.4/site-packages/matplotlib/
backend_bases.py in <module>()
54
55 import matplotlib.tight_bbox as tight_bbox
---> 56 import matplotlib.textpath as textpath
57 from matplotlib.path import Path
58 from matplotlib.cbook import mplDeprecation
/Users/eric/anaconda/lib/python3.4/site-packages/matplotlib/
textpath.py in <module>()
20 from matplotlib.ft2font import FT2Font, KERNING_DEFAULT, LOAD_NO_HINTING
21 from matplotlib.ft2font import LOAD_TARGET_LIGHT
---> 22 from matplotlib.mathtext import MathTextParser
23 import matplotlib.dviread as dviread
24 from matplotlib.font_manager import FontProperties
/Users/eric/anaconda/lib/python3.4/site-packages/matplotlib/
mathtext.py in <module>()
61
62 import matplotlib.colors as mcolors
---> 63 import matplotlib._png as _png
64 ####################
65
ImportError: dlopen(/Users/eric/anaconda/lib/python3.4/site-packages/matplotlib/
_png.so, 2): Library not loaded: @
loader_path/../../../libpng15.15.dylib
Referenced from: /Users/eric/anaconda/lib/python3.4/site-packages/matplotlib/
_png.so Reason: image not found
请问如何结局??谢谢帮助哦!非常感谢!
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.