Sometimes you need to know what Python modules you already installed, the easiest way to get a list is to:
help('modules')
This will give you a list of installed modules typically as a series of columns. All you have are names, not version numbers. If you need to know version numbers, then try:
import matplotlib print(matplotlib.__version__) 1.5.1