Prev: Finding the version # of a module, and py module problem
Next: Python Portability--Not very portable?
From: Steven D'Aprano on 5 Aug 2010 21:13 On Thu, 05 Aug 2010 17:55:30 -0700, W. eWatson wrote: > I'm pretty sure he has the same version of Python, 2.5, but perhaps not > the numpy or scipy modules. I need to find out his version numbers. It's only a convention, but the usual way is to check the __version__ attribute. It works for Numpy: >>> import numpy >>> numpy.__version__ '1.0.3' -- Steven |