Skip to content

Commit b3d3494

Browse files
committed
setup-binary-builds: explicitly install pip in pkg-helpers conda env
Conda 25.x (pulled in by miniconda "latest") no longer installs pip by default when only python=X.Y is requested. This breaks pytorch_pkg_helpers setup with "No module named pip" when running `python -m pip install ...` in the freshly-created env. Add `pip` explicitly to the `conda create` invocation.
1 parent 83b09e3 commit b3d3494

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/actions/setup-binary-builds/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ runs:
113113
conda create \
114114
--yes --quiet \
115115
--prefix "${CONDA_ENV}" \
116-
"python=3.9"
116+
"python=3.9" pip
117117
CONDA_ENV="${CONDA_ENV}"
118118
CONDA_RUN="conda run --no-capture-output -p ${CONDA_ENV}"
119119
${CONDA_RUN} python -m pip install ${GITHUB_WORKSPACE}/test-infra/tools/pkg-helpers

0 commit comments

Comments
 (0)