pylab import hatası: matplotlib _png problemi

Mac OS X’te

import pylab

komutu aşağıdakine benzer bir hata verebiliyor:

import matplotlib._png as _png
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/matplotlib/_png.so, 2): Library not loaded: /usr/local/lib/libpng15.15.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/matplotlib/_png.so
Reason: image not found

Bu durumda şu brew komutları hatayı düzeltiyor:

sudo pip uninstall matplotlib
sudo rm -rf /tmp/pip-build-root/
brew reinstall libpng --universal
brew reinstall freetype --universal
sudo pip install matplotlib

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation