Skip to content

Commit 71aef70

Browse files
malfetvmoens
authored andcommitted
Fix pkg-helpers conda env: explicitly install pip (pytorch#8035)
Conda 25.x (now resolved as miniconda `latest`, after pytorch#7753 upgraded conda to 25.3.0) no longer installs `pip` by default when only `python=X.Y` is requested in `conda create`, which breaks the `pytorch_pkg_helpers` step in `setup-binary-builds/action.yml`, which immediately calls `python -m pip install ...` against the new env and fails with `No module named pip` (e.g. observed in torchcomms wheel builds). Fix: add `pip` explicitly to the `conda create` invocation so the env is usable regardless of conda's default-package behavior.
1 parent 7bc9d5b commit 71aef70

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)