@pypi
The @pypi
decorator specifies what packages should be made available for a step.
The packages are installed from PyPI repositories. Packages must be a wheel. For more information, see Managing External Libraries.
from metaflow import pypi
Specifies the PyPI packages for the step.
Information in this decorator will augment any
attributes set in the @pyi_base
flow-level decorator. Hence,
you can use @pypi_base
to set packages required by all
steps and use @pypi
to specify step-specific overrides.
packages: Dict[str, str], default: {}
Packages to use for this step. The key is the name of the package and the value is the version to use.
python: str, optional, default: None
Version of Python to use, e.g. '3.7.4'. A default value of None implies that the version used will correspond to the version of the Python interpreter used to start the run.