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