install_packages
Install Python packages via pip with configurable options including upgrade, dependency handling, custom indexes, pre-releases, output limit, and timeout.
Instructions
Install Python packages using pip.
Parameters
packages : list of str List of package specifiers (e.g., "scikit-image", "torch==2.3.1"). upgrade : bool, optional If True, pass --upgrade flag. no_deps : bool, optional If True, pass --no-deps flag. index_url : str, optional Custom index URL. extra_index_url : str, optional Extra index URL. pre : bool, optional Allow pre-releases (--pre flag). line_limit : int, default=30 Maximum number of output lines to return. Use -1 for unlimited output. timeout : int, default=240 Timeout for pip install in seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packages | Yes | ||
| upgrade | No | ||
| no_deps | No | ||
| index_url | No | ||
| extra_index_url | No | ||
| pre | No | ||
| line_limit | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||