Hi William, I have also spent some time to have a numpy/scipy/matplotlib set working under mac os X lion (10.7.3).... I use python 2.7.2, and work with ipython (0.12) in pylab mode. I finally did a mixture of several posts on forums and got it to work properly now.
Here is the recipe : 1 - Install homebrew (and remove macport and fink) and easy-install / pip 2 - Install python, gfortran and pkg-config using homebrew With homebrew, everything should be installed in /usr/local/Cellar 3 - Install ipython (0.12) and numpy (1.6.1) with homebrew 4 - Scipy install (version 0.11.0.dev-e857412 ) : pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev It automatically installs scipy in /Users/nicolas/src and link it to /usr/local/Cellar/ 5 - Matplotlib install (dev as well 1.2.x): sudo make -f make.osx PREFIX=/Users/nicolas/src PYVERSION=2.7 fetch deps mpl_install_std It also instal in /Users/yourname/src/ It also 6 - add to your .bash_profile the following : export PATH=/usr/local/bin:$PATH export PATH=/usr/local/share/python:$PATH export PYTHONPATH=/usr/local/lib/python:$PYTHONPATH The "not very nice and clean" art is that I have a /src folder (which contains numpy) and a /matplotilib folder in my /Users/nicolas.... I hope it helps. Nicolas On 20 févr. 2012, at 21:17, William Jennings wrote: > Hello mat plot lib users! > > I feel quite embarrassed that I’ve gone through 2 days of trying to get to > get numpy, scipy and matplotlib all to work nice with each other. I’ve > scraped through forums, stackoverflow and all the links that can bide me some > type of logic. Yet, alas I still fail wildly with this set of errors: > > my current status is: just did a fresh install of my lion os and haven't > installed Xcode yet. I'm a little lost and have found only macports, homebrew > guides online only to be a slower failure. I really need to use this software > but I'm finding it difficult keeping straight what order and what I need to > install. Is it best to have python 2.6 or 2.72? if it's 2.72 should it be the > universal version from python.org? Once that is installed is it best to just > install numpy and scipy from github and then try matplotlib? I know I need to > install fortran and make sure that it's using G++ 4.2 and C++ 4.2 BEFORE i > run scipy and numpy setup... Yet, right now I'm floundering for a clear > example on 10 or so commands I should put into terminal and in the correct > order for how to install it. I promise once I learn how to install I'll put a > resource on the web or link back to some of the better resources. As for now > my freshly installed os computer is in your hands currently with python 2.71 > that was preinstalled with Lion. That is all I've done thus far. > > Thank you ! > > Here is the old error I was getting when I used the home brew guide that I > found here: bit.ly/qGdKy9 > In file included from src/backend_agg.cpp:11: > In file included from src/_backend_agg.h:34: > agg24/include/agg_renderer_outline_aa.h:1368:45: error: binding of reference > to type ‘agg::line_profile_aa’ to a value of type ‘const > agg::line_profile_aa’ drops qualifiers > line_profile_aa& profile() { return *m_profile; } > ^~~~~~~~~~ > 1 error generated. > error: command ‘/usr/bin/clang’ failed with exit status 1 > —————————————- > Command /Users/Will/.virtualenvs/test1/bin/python -c “import > setuptools;file=’/Users/Will/.virtualenvs/test1/src/matplotlib/setup.py’; > exec(compile(open(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” develop > –no-deps failed with error code 1 in > /Users/Will/.virtualenvs/test1/src/matplotlib > Storing complete log in /Users/Will/.pip/pip.log > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d_______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users