You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setFailed(`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`);
102883
-
}
102884
-
}
102885
102873
async function cacheDependencies(cache, pythonVersion) {
-[Using the pip-version input](advanced-usage.md#using-the-pip-version-input)
26
-
-[Using the pip-install input](advanced-usage.md#using-the-pip-install-input)
27
26
28
27
## Using the `python-version` input
29
28
@@ -673,22 +672,3 @@ The version of Pip should be specified in the format `major`, `major.minor`, or
673
672
> The `pip-version` input is supported only with standard Python versions. It is not available when using PyPy or GraalPy.
674
673
675
674
> Using a specific or outdated version of pip may result in compatibility or security issues and can cause job failures. For best practices and guidance, refer to the official [pip documentation](https://pip.pypa.io/en/stable/).
676
-
677
-
## Using the pip-install input
678
-
679
-
The `pip-install` input allows you to install dependencies as part of the Python setup step.
680
-
681
-
682
-
```yaml
683
-
steps:
684
-
- uses: actions/checkout@v6
685
-
- name: Set up Python
686
-
uses: actions/setup-python@v6
687
-
with:
688
-
python-version: '3.13'
689
-
pip-install: -r requirements.txt
690
-
```
691
-
> Note: This feature is intended for standard pip-based dependency installations.
692
-
For complex workflows, or alternative package managers (e.g., poetry, pipenv), we recommend using separate steps to maintain clarity and flexibility.
693
-
694
-
> The `pip-install` input mirrors the flexibility of a standard pip install command and supports most of its arguments.
`Failed to install pip packages from "${pipInstall}". Please verify that the package names, versions, or requirements files provided are correct and installable, that the specified packages and versions can be resolved from PyPI or the configured package index, and that your network connection is stable and allows access to the package index.`
0 commit comments