zut.pip.install_pypi_dependency

zut.pip.install_pypi_dependency(modules: str | list[str] | dict[str, str | None], *, yes=False)

Install PyPI dependencies with pip if they are not available.

Parameters:
  • modules – Dependency or list of dependencies to install if not available

  • yes – If set, do not ask confirmation.