diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index a18680a4..ea976328 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1042,7 +1042,9 @@ build_package_anaconda() { build_package_miniconda() { build_package_anaconda "$@" - "${PREFIX_PATH}/bin/conda" install --yes "pip" + # Workaround to not upgrade conda when installing pip + # see https://github.com/pyenv/pyenv/issues/2070 + "${PREFIX_PATH}/bin/conda" install --yes "pip" "conda=$(${PREFIX_PATH}/bin/conda --version | cut -d ' ' -f 2)" } build_package_copy() {