[Matplotlib-users] Importing pylab

hamid.rajabi hamid1rajabi at gmail.com
Fri Feb 26 05:49:49 EST 2016


Dear all,
I have installed matplotlib modul on python 2.7 and it works perfectly. just
when I want to import "pylab" module, I receive this error:
"
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import pylab
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py",
line 1, in <module>
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pylab.py",
line 231, in <module>
    import matplotlib.finance
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/finance.py",
line 38, in <module>
    from matplotlib.collections import LineCollection, PolyCollection
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/collections.py",
line 27, in <module>
    import matplotlib.backend_bases as backend_bases
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 56, in <module>
    import matplotlib.textpath as textpath
  File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/textpath.py",
line 19, 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 58, in <module>
    from matplotlib import ft2font
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so,
2): Library not loaded: @loader_path/../../../libfreetype.6.dylib
  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so
  Reason: image not found
"
Please Help me.



--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Importing-pylab-tp46800.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


More information about the Matplotlib-users mailing list