Yeah... I'm not sure either.  Eventually I just through in the towel, deleted everything and sudo apt-get install python-matplotlb

Thanks for the help though!


Date: Mon, 18 May 2009 20:29:33 +0000
Subject: Re: Re: [Matplotlib-users] [matplotlib-devel] Error building from source - Ubuntu

On May 18, 2009 3:09pm, M Uhlenhuth <> wrote:
> I discovered I actually did have python2.5-dev (just not a python-dev version 2.5!).
> I compiled and ran the code, but I'm getting errors like:
> In [2]: import matplotlib.pyplot as plt
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
> /home/maximus/ in ()
> /usr/lib/python2.5/site-packages/matplotlib/ in ()
> 2

Normally when you compile and install from src, the default location is /usr/local rather than /usr. Did you override this with --prefix or --install-lib? If not, I wonder if you are not using the version you think you are. Also, check the FAQ

For suggestions on how to get a clean build and install.