

PYLAB INSTALL FOR MAC HOW TO
It contains directions for how to install python, numpy, matplotlib and all necessary dependencies. I have a written a “ How to install python dev tools on Mac OSX” that you may find useful. From the error it could look like you have a problem with libPNG support.

I know it will take a lot more time, but I would reccomend installing python, numpy, and matplotlib from source to ensure that you have consistency in your system.
PYLAB INSTALL FOR MAC FOR MAC OS X
I am not sure it is completely ready for mac OS X Lion yet. You don’t have a handle over configuration or compiler flags as you would if you built from source.Ī good alternative to macports is fink, which seems to give you more control (build from source). What’s the down side? As has mentioned in the comments, it is good if you’re OK with default compilations of packages. When is it particularly useful? When you want to install on top of a version of python that is different to system python, and when you have non-python extensions (C, C++, Fortran…). Overriding the system python can break applications that rely on it (this is certainly true in many Linux distributions, maybe less so on mac OS X). And because the default installation location is not the system executable location. Why use macports (or another installer)? Because they take care of dependencies, provide functionality to uninstall and switch between versions (I’ve used the latter successfully for gcc and python). I would recommend using macports, it should take care of dependencies and would be indepedent of the system python version.ĮDIT: Just a few clarifications, taking into account comments to this answer. I got version 0.10.0 dev (as of this writing) and path /usr/local/Cellar/… Solution no. I got stuck at pip install -e git+Ĭhecked my installation by typing in terminal: python You can follow the instructions on Solution no. The changes has already been pushed upstream, so you will need to compile from the upstream repository until the next release.
PYLAB INSTALL FOR MAC MAC OSX
This is because of a change in the API for libpng v1.5 (which is included with Mac OSX Lion).

You might have to re-install numpy as well afterwords: You can try with an “official” python distribution, apple might have tweaked the supplied one. “src/_image.cpp:908: error: invalid use of incomplete type ‘struct png_info_def’”Ĭan you give me clues in how to install it?ĮDIT: I found a way, without having to install a new version of python: I went to the Terminal and typed python –version and its check the requirements.Īfter this I tried to used the pip, and while doing so é got the following error: Tried to used the binary that is in the sourcefourge site, but I got this error: “matplotlib requires System Python 2.7 to install”. I was trying to install matplotlib in Mac OSX Lion.
