[Tutor] Finding the version # of a module, and py module problem

W. eWatson wolftracks at invalid.com
Fri Aug 6 03:40:02 CEST 2010


On 8/5/2010 6:13 PM, Steven D'Aprano wrote:
> 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'
>
>
>
It is now written in my Py book. Thanks.



More information about the Python-list mailing list