

Users/beerli/src/matplotlib/lib/matplotlib/ft2font.so: Referenced from: /Users/beerli/src/matplotlib/lib/matplotlib/ft2font.soĬiguri:histograms>otool -L /Users/beerli/src/matplotlib/lib/matplotlib/ft2font.so ImportError: dlopen(/Users/beerli/src/matplotlib/lib/matplotlib/ft2font.so, 2): Symbol not found: _FT_Attach_File Given the error it misses some font stuff [this is macosx 10.7 and an matplotlib 0.99 works,īut I need a command from the newer distribution.Īny idea how to approach this I followed your instructions and all went OK, except that once I want to use it I fail the following (1), I’m not sure if this GitHub site is “official,” but is looks to be.Īll that is needed is to build Matplotlib from source instead of using pip, so the installation procedure is now:Īnd now you’re good to go! Hopefully this will become much easier with the next official release of Matplotlib. Instead of pulling the sources from the Matplotlib SourceForge site, you need to pull them from the Matplotlib GitHub site. Until the next release, the Matplotlib sources in Git can be used. Fortunately, the fix is already applied up-stream and will probably be a part of Matplotlib 1.0.2, or 1.1.0, or whatever the next released version is. Briefly put, Matplotlib 1.0.1 is not compatible with libpng 1.5 due to a change in the API. Unfortunately, as previously mentioned, all is not so easy in the world of Mac OS X 10.7, and the difficulty lies with libpng 1.5, installed with Mac OS X 10.7’s version of X11. Additionally, the current Matplotlib release version (1.0.1 as of this post) does not compile out-of-the-box against libpng 1.5, which is included in the X11 distribution shipped with Mac OS X 10.7.įor previous versions of Mac OS X (10.6, 10.5), the usual way to install matplotlib was to install python, pkg-config, and gfortran with Homebrew, then install numpy and matplotlib through pip, ala: However, getting matplotlib installed on Mac OS X 10.7 can be a bit tricky, especially if you are using Homebrew as your “package manager.” First off, Homebrew does not have packages for matplotlib, as well as some of its dependencies. For those of you that do not know, Matplotlib is an excellent Python plotting library that allows you to create professional-quality plots for inclusion on web pages, Latex documents, Beamer presentations, Keynote presentations, and any other software that can import SVG, EPS, PNG, or virtually any graphic format.
