Install matplotlib on Mac OSX Mountain Lion

I am trying to install matplotlib but am facing many problems. I get a general error from both install install matplotlib, and also try to build from a source that:

BUILDING MATPLOTLIB

        matplotlib: 1.1.1

            python: 2.7.2 (default, Jun 20 2012, 16:23:33)  [GCC 4.2.1

                    Compatible Apple Clang 4.0

                    (tags/Apple/clang-418.0.60)]

          platform: darwin

NECESSARY DEPENDENCIES

             numpy: 1.6.1

                    * Could not find the headers for numpy.  You may

                    * need to install the development package.

EDIT: finally decided. I needed to install gfortran and gcc compilers. It used a brew and it worked like a charm!

+5
source share
4 answers

In the end, I decided. I needed to install gfortran and gcc compilers. It used a brew and it worked like a charm!

+2
source

Installing matplotlib for Mountain Lion requires installing a version of matplotlib.

Try pip install git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib-dev

You may need numpy 1.6.2it to work.

, Mountain Lion numpy/scipy/matplotlib/IPhython this

+4

macports brew - mac.My experience

0

Install numpy.

pip install numpy

It should sort the dependencies for you - I'm not sure why it doesn't work.

-1
source

All Articles