getPythonPackages

lsst.base.getPythonPackages()[source]

Get imported python packages and their versions.

Returns:

packages : dict

Keys (type str) are package names; values (type str) are their versions.

Notes

We wade through sys.modules and attempt to determine the version for each module. Note, therefore, that we can only report on modules that have already been imported.

We don’t include any module for which we cannot determine a version.