ActiveState Code

Recipe 576491: Getting version number of modules


How to print out the version number of a module

Python
1
2
import matplotlib
print matplotlib.__version__

Discussion

This works for just about any 'professional' module

Sign in to comment