composer.utils.MissingConditionalImportError#

exception composer.utils.MissingConditionalImportError(extra_deps_group, conda_package, conda_channel='conda-forge')[source]#

Handles errors for external packages that might not be installed.

Parameters
  • extra_deps_group (str) โ€“ the pip package group, found in setup.py. For example, nlp for mosaicml[nlp].

  • conda_package (str, optional) โ€“ The package(s) to install if using conda.

  • conda_channel (str, optional) โ€“ The conda channel to install packages from. Set to None if the package is not published on conda and must be installed via pip.