Glen Shennan, on 2011-01-21 15:41, wrote: > Hi, > > I'm trying to install matplotlib from the svn source. I can compile > the code and install it to my desired location but I cannot import it > into python. > > I did: > > svn co > https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib > matplotlib > cd matplotlib > python setup.py install --prefix=/home/glen/local > > I have numpy and scipy installed and working correctly using the above > prefix and matplotlib compiles and installs the same way but when I > issue "import matplotlib as mpl" nothing results. There is no error > but also no library. > > >>> dir(mpl) > ['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__'] > > >>> mpl.__path__ > ['matplotlib'] > > >>> mpl.__file__ > 'matplotlib/__init__.pyc'
Hi Glen, what directory are you in when you're doing this? > >>> mpl.__path__ > ['matplotlib'] suggests that you're importing from some local directory. If everything worked right, the path should be something like >>> mpl.__path__ ['/home/glen/local/lib/python2.x/site-packages/matplotlib'] best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users