Gael Varoquaux wrote:
On Thu, Aug 13, 2009 at 09:30:22AM -0600, Jeff Whitaker wrote:
Ariel Rokem wrote
import matplotlib
matplotlib.__version__
'0.98.5.2'
Ariel: This tells me you really didn't install it, or you installed it in a different version of python than you are trying to import it with.
So - still no version update. I ran:
'easy_install matplotlib', which somehow seems to change the path
setting to find the most recent version of things (maybe someone here
can tell me how this happens?) now:


I am not sure that Ariel didn't install things right. He might be a
victim of setuptools' monkey patching of sys.path.

That depends. When doing a "python setup.py install" where setup.py's setup() function is imported from setuptools instead of distutils, then the setuptools install command deactivates any other eggs in the python environment, installs a "distutils" style install of the project in question, creates an .egg-info file in the install directory which acts just like a .egg, and finally updates the easy-install.pth in that install directory to reflect that the new install is active.

If the setup.py uses the setup() function from distutils, then none of that happens and Gael is right. Any previous install of matplotlib via setuptools will go to the front of the sys.path and the new install won't be seen.


-- Dave
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to