<p dir="ltr">It is odd that you are getting the tarball not the osx wheels.</p>
<p dir="ltr">You need to install both pkg-config and the development version of freetype.</p>
<p dir="ltr">Tom</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 5, 2015, 07:53 petertso <<a href="mailto:ptso@nestlabs.com">ptso@nestlabs.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I met this failure but I didn't know how to fix it.<br>
My original matplotlib version is 1.3.1.<br>
Could anyone please teach me how to fix it?<br>
<br>
Thanks<br>
Peter<br>
<br>
petertso-macbookpro:scripts petertso$ pip install matplotlib --upgrade<br>
Collecting matplotlib<br>
  Using cached matplotlib-1.5.0.tar.gz<br>
    Complete output from command python setup.py egg_info:<br>
    IMPORTANT WARNING:<br>
        pkg-config is not installed.<br>
        matplotlib may not be able to find some of its dependencies<br>
<br>
============================================================================<br>
    Edit setup.cfg to change the build options<br>
<br>
    BUILDING MATPLOTLIB<br>
                matplotlib: yes [1.5.0]<br>
                    python: yes [2.7.7 |Anaconda 2.0.1 (x86_64)| (default,<br>
Jun<br>
                            2 2014, 12:48:16)  [GCC 4.0.1 (Apple Inc. build<br>
                            5493)]]<br>
                  platform: yes [darwin]<br>
<br>
    REQUIRED DEPENDENCIES AND EXTENSIONS<br>
                     numpy: yes [version 1.8.1]<br>
                  dateutil: yes [using dateutil version 1.5]<br>
                      pytz: yes [using pytz version 2014.3]<br>
                    cycler: yes [cycler was not found. pip will attempt to<br>
                            install it after matplotlib.]<br>
                   tornado: yes [using tornado version 3.2.1]<br>
                 pyparsing: yes [using pyparsing version 2.0.1]<br>
                    libagg: yes [pkg-config information for 'libagg' could<br>
not<br>
                            be found. Using local copy.]<br>
                  freetype: no  [The C/C++ header for freetype2 (ft2build.h)<br>
                            could not be found.  You may need to install the<br>
                            development package.]<br>
                       png: yes [version 1.5.13]<br>
                     qhull: yes [pkg-config information for 'qhull' could<br>
not be<br>
                            found. Using local copy.]<br>
<br>
    OPTIONAL SUBPACKAGES<br>
               sample_data: yes [installing]<br>
                  toolkits: yes [installing]<br>
                     tests: yes [using nose version 1.3.3 / using mock<br>
1.0.1]<br>
            toolkits_tests: yes [using nose version 1.3.3 / using mock<br>
1.0.1]<br>
<br>
    OPTIONAL BACKEND EXTENSIONS<br>
                    macosx: yes [installing, darwin]<br>
                    qt5agg: no  [PyQt5 not found]<br>
                    qt4agg: yes [installing, Qt: 4.8.6, PyQt: 4.8.6; PySide<br>
not<br>
                            found]<br>
                   gtk3agg: no  [Requires pygobject to be installed.]<br>
                 gtk3cairo: no  [Requires cairocffi or pycairo to be<br>
installed.]<br>
                    gtkagg: no  [Requires pygtk]<br>
                     tkagg: no  [The C/C++ header for Tk (tk.h) could not be<br>
                            found.  You may need to install the development<br>
                            package.]<br>
                     wxagg: no  [requires wxPython]<br>
                       gtk: no  [Requires pygtk]<br>
                       agg: yes [installing]<br>
                     cairo: no  [cairocffi or pycairo not found]<br>
                 windowing: no  [Microsoft Windows only]<br>
<br>
    OPTIONAL LATEX DEPENDENCIES<br>
                    dvipng: yes [version 1.14]<br>
               ghostscript: yes [version 9.10]<br>
                     latex: yes [version 3.14159265]<br>
                   pdftops: no<br>
<br>
    OPTIONAL PACKAGE DATA<br>
                      dlls: no  [skipping due to configuration]<br>
<br>
<br>
============================================================================<br>
                            * The following required packages can not be<br>
built:<br>
                            * freetype<br>
<br>
    ----------------------------------------<br>
*Command "python setup.py egg_info" failed with error code 1 in<br>
/private/var/folders/00/1t1jr000h01000cxqpysvccm007867/T/pip-build-6pnLIL/matplotlib*<br>
petertso-macbookpro:scripts petertso$<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/MAC-OSX-10-10-5-upgrade-from-1-3-1-to-1-5-0-Fail-tp46390.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/MAC-OSX-10-10-5-upgrade-from-1-3-1-to-1-5-0-Fail-tp46390.html</a><br>
Sent from the matplotlib - users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>