Python matplotlib library install in max os x -


I am trying to install the matplotlib library for Python. The establishment was okay, but when I imported Yellowbank (such as Import Yellowab P) in Pythab, I got the following error.


  file "/ library / frames / python framework / version / 2.7 / lib / python2.7 / site-packages / matplotlib / mathtext.py", line 61, & lt ; Module & gt; dlopen (/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so, 2): As _png ImportError did not import matplotlib._png symbol referred to _png_set_longjmp_fn expected /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so: flat name /Library/Frameworks/Python.framework/Versions/2.7/lib/python2 Location. 7 / site-packages / matplotlib / _png.so   

Google searches indicate that the link error (which does not appear for "_png_set_longjmp_fn") 32/64 Bit Compiling Issue for PGG Library

I tried to re-install matplotlib based on the README.osx file in the library, but it was not decided. I found that it was not resolved in other ways. Apart from this, I have checked that the libraries have been compiled on 32 or 64 bit. Both related binary support (universal binaries) as follows.


  & gt; File / Library / Framework / Python. Framework / Version -2.7 / lib / Paithon 2 / site / package /matplotlib/_png.so /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so: Mach -O2 Universal Binary with Library Architecture / Library / Frameworks / Python Framework / Version / 2.7 / Lieb / Python 2 / site-packages / Maptllib / _png.so (for architecture i386): Mac-O bundle i386 / Library / Framvrk / Pithonkfremvrk / version -2.7 / LB / Paithon 2.7 / Site-packages / matplotlib / _png.so (for architecture x86_64): Mach -O 64-bit bundle x86_64 & gt; File /Library/Frameworks/libpng.framework/Versions/Current/libpng /Library/Frameworks/libpng.framework/ version / current / libpng: mach-o binary 2 architecture /Library/Frameworks/libpng.framework/Versions/ with universal Current / libpng (for architecture x86_64): Mach-O 64-bit Dynamically linked shared library x86_64 / Library / Frameworks / libpng.framework / version / Cur rent / libpng (i386 for architecture): Mac- O Library link attached to the dynamic link i386   

My OS X version tiger is 10.7.4. Do you have any idea about this problem? Thanks!

I had the same problem when I did the second day from Matplotlib import pattern Five hours after closing my head against the wall the other day, this solution worked for me (

I got this set of commands to set up symlinks:

 < Code> sudo mkdir -p / usr / local / sudo ln -s / usr / x11 / include / freetype2 / freetype / usr / local / include / freetype sudo ln -s /usr/X11/include/ft2build.h / usr / Includes local / include / ft2build. H Sudo LN-S / USR / X11 / includes / png.h / usr / loc Al / include / png.h sudo ln -s /usr/X11/include/pngconf.h/usr/local/include/pngconf.h sudo ln -s /usr/X11/include/pnglibconf.h/ usr / local / include / pnglibconf.h sudo mkdir -p / usr / local / lib sudo ln -s /usr/X11/lib/libfreetype.dylib / usr /local/lib/libfreetype.dylib sudo ln -s / usr / X11 / lib / Libpng.dylib /usr/local/lib/libpng.dylib   

It does not solve all of your issues, but it is my PKG-config problem (among others) Has solved. Perhaps a similar link will help with QT.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -