getAllPythonDistributions¶
- lsst.utils.packages.getAllPythonDistributions() dict[str, str] ¶
Get the versions for all Python distributions that are installed.
- Returns:
- packages
dict
[str
,str
] Keys are distribution names; values are their versions. Unlike
getPythonPackages
this function will not include standard library packages defined insys.stdlib_module_names
but will include a specialpython
key reporting the Python version.
- packages
Notes
If this function is called a second time an identical result will be returned even if a new distribution has been installed.