[Tutor] Finding the version # of a module, and py module problem
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Thu Aug 5 21:13:11 EDT 2010
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
More information about the Python-list
mailing list