pip#
Pip-flavored installer.
Functions#
|
Installs the pip dependencies in specs using a temporary pip requirements file. |
- install(prefix, specs, args, *_, workdir=None, requirements_sources=None, **kwargs)#
Installs the pip dependencies in specs using a temporary pip requirements file.
- Parameters:
prefix (string) -- The path to the python and pip executables.
specs (iterable of strings) --
Each element should be a valid pip dependency. Ignored when requirements_sources is nonempty. See: https://pip.pypa.io/en/stable/user_guide/#requirements-files
workdir (str | None, optional) -- Working directory for resolving relative paths in specs (e.g. -e ./local_pkg). Caller should derive from the environment file path. None for URLs or when no file path is available.
requirements_sources (list[tuple[list[str], str | None]] | None, optional) -- Pip requirements grouped by source file workdir. When present, conda writes one temporary requirements file and passes it to one pip subprocess so pip resolves all specs together.