RequirementsMixin
RequirementsMixin
¶
Mixin for classes that have requirements
attribute.
Used to add requirements to a Step
and a Pipeline
.
Source code in src/distilabel/mixins/requirements.py
requirements: List[str]
property
writable
¶
Return a list of requirements that must be installed to run the Pipeline
.
The requirements in a Pipeline will include the requirements from all the steps (if any).
Returns:
Type | Description |
---|---|
List[str]
|
List of requirements that must be installed to run the |
requirements_to_install()
¶
Check if the requirements are installed in the current environment, and returns the ones that aren't.
Returns:
Type | Description |
---|---|
List[str]
|
List of requirements required to run the pipeline that are not installed in the current environment. |