aea.helpers.install_dependency
Helper to install python dependencies.
install_dependency
install_dependency(dependency_name: str, dependency: Dependency, logger: Logger, install_timeout: float = 300) -> None
Install python dependency to the current python environment.
Arguments:
dependency_name: name of the python packagedependency: Dependency specificationlogger: the loggerinstall_timeout: timeout to wait pip to install
install_dependencies
install_dependencies(dependencies: List[Dependency], logger: Logger, install_timeout: float = 300) -> None
Install python dependencies to the current python environment.
Arguments:
dependencies: dict of dependency name and specificationlogger: the loggerinstall_timeout: timeout to wait pip to install
call_pip
Run pip install command.
Arguments:
pip_args: list strings of the commandtimeout: timeout to wait pip to installretry: bool, try one more time if command failed
run_install_subprocess
Try executing install command.
Arguments:
install_command: list strings of the commandinstall_timeout: timeout to wait pip to install
Returns:
the return code of the subprocess