_get_deps_info#

pytorch_forecasting.utils._maint._show_versions._get_deps_info(deps=None, source='distributions')[source]#

Overview of the installed version of main dependencies.

Parameters:
  • deps (optional, list of strings with package names) – if None, behaves as deps = [“sktime”].

  • source (str, optional one of "distributions" (default) or "import") –

    source of version information

    • ”distributions” - uses importlib.distributions. In this case, strings in deps are assumed to be PEP 440 package strings, e.g., scikit-learn, not sklearn.

    • ”import” - uses the __version__ attribute of the module. In this case, strings in deps are assumed to be import names, e.g., sklearn, not scikit-learn.

Returns:

deps_info – version information on libraries in deps keys are package names, import names if source is “import”, and PEP 440 package strings if source is “distributions”; values are PEP 440 version strings of the import as present in the current python environment

Return type:

dict