getAllPythonDistributions

lsst.utils.packages.getAllPythonDistributions() dict[str, str]

Get the versions for all Python distributions that are installed.

Returns:
packagesdict [ str, str ]

Keys are distribution names; values are their versions. Unlike getPythonPackages this function will not include standard library packages defined in sys.stdlib_module_names but will include a special python key reporting the Python version.

Notes

If this function is called a second time an identical result will be returned even if a new distribution has been installed.