Having trouble installing matplotlib on Mac OS X Lion

Having trouble installing matplotlib on Mac OS X Lion
Hi all,

I had matplotlib-0.99.1.1 working with Python 2.6 on OS X v10.6(Snow Leopard). Today I upgraded to Lion (v10.7) and matplotlib had disappeared. Lion ships with Apple’s version of Python 2.7. Even when I look back at Python 2.6 in the /System/Library/Frameworks/Python/Version/Python2.6, it seems to be gone. OK, I thought I would install matplotlib-1.0.1 in Python 2.7 using easy_install. It failed when unable to find the headers for numpy (terminal output below). Lion comes with numpy 1.5.1 pre-installed. I tried re-installing numpy but that didn’t help so now I’m stuck.

Any suggestions?

Thanks.

c4-2c-3-1-f0-3a:matplotlib-1.0.1 williamcarithers$ sudo easy_install matplotlib

Searching for matplotlib

Reading http://pypi.python.org/simple/matplotlib/

Reading http://matplotlib.sourceforge.net

Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/

Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474

Reading http://sourceforge.net/project/showfiles.php?group_id=80706

Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474

Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/

Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194

Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/

Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0

Best match: matplotlib 1.0.1

Downloading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/matplotlib-1.0.1.tar.gz/download

Processing matplotlib-1.0.1.tar.gz

Running matplotlib-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-OI8zuY/matplotlib-1.0.1/egg-dist-tmp-3EXRXm

basedirlist is: []

···

============================================================================

BUILDING MATPLOTLIB

        matplotlib: 1.0.1

            python: 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)  [GCC

                    4.2.1 (Based on Apple Inc. build 5658) (LLVM build

                    2335.15.00)]

          platform: darwin

REQUIRED DEPENDENCIES

             numpy: 1.5.1

                    * Could not find the headers for numpy.  You may

                    * need to install the development package.

error: Setup script exited with 1

Hello William - did you manage to solve this problem without resorting to
building from source?

Thanks!

···

--
View this message in context: http://old.nabble.com/Having-trouble-installing-matplotlib-on-Mac-OS-X-Lion-tp32222373p33544787.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi,

   Have you tried the EPD python installation, it works for me and includes
SciPY/Numpy/ etc.

Cheers,
Joe

William Carithers wrote:

···

Hi all,

I had matplotlib-0.99.1.1 working with Python 2.6 on OS X v10.6(Snow
Leopard). Today I upgraded to Lion (v10.7) and matplotlib had disappeared.
Lion ships with Apple¹s version of Python 2.7. Even when I look back at
Python 2.6 in the /System/Library/Frameworks/Python/Version/Python2.6, it
seems to be gone. OK, I thought I would install matplotlib-1.0.1 in Python
2.7 using easy_install. It failed when unable to find the headers for
numpy
(terminal output below). Lion comes with numpy 1.5.1 pre-installed. I
tried
re-installing numpy but that didn¹t help so now I¹m stuck.

Any suggestions?

Thanks.

c4-2c-3-1-f0-3a:matplotlib-1.0.1 williamcarithers$ sudo easy_install
matplotlib
Searching for matplotlib
Reading Links for matplotlib
Reading http://matplotlib.sourceforge.net
Reading
https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.
1/
Reading
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading matplotlib - Browse Files at SourceForge.net
Reading
matplotlib - Browse Files at SourceForge.net
4
Reading
matplotlib - Browse /matplotlib/matplotlib-0.99 at SourceForge.net
.1/
Reading
https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=2781
94
Reading
matplotlib - Browse /matplotlib/matplotlib-0.99 at SourceForge.net
.3/
Reading
https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0
Best match: matplotlib 1.0.1
Downloading
matplotlib - Browse /matplotlib/matplotlib-1.0.1 at SourceForge.net
/matplotlib-1.0.1.tar.gz/download
Processing matplotlib-1.0.1.tar.gz
Running matplotlib-1.0.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-OI8zuY/matplotlib-1.0.1/egg-dist-tmp-3EXRXm
basedirlist is:

BUILDING MATPLOTLIB
            matplotlib: 1.0.1
                python: 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC
                        4.2.1 (Based on Apple Inc. build 5658) (LLVM build
                        2335.15.00)]
              platform: darwin

REQUIRED DEPENDENCIES
                 numpy: 1.5.1
                        * Could not find the headers for numpy. You may
                        * need to install the development package.
error: Setup script exited with 1

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
View this message in context: http://old.nabble.com/Having-trouble-installing-matplotlib-on-Mac-OS-X-Lion-tp32222373p33544963.html
Sent from the matplotlib - users mailing list archive at Nabble.com.