From 70edea0b3774671e743141d251b63b1152526f88 Mon Sep 17 00:00:00 2001 From: jivanf Date: Fri, 20 Aug 2021 16:42:28 -0400 Subject: [PATCH] Fix get-pip.py URLs for older versions of Python --- bin/pyenv-virtualenv | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index 01a0ffc6..00fd3eba 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -479,7 +479,10 @@ if [ -z "${GET_PIP_URL}" ]; then # Use custom get-pip URL based on the target version (#1127) case "${PYENV_VERSION}" in 2.6 | 2.6.* ) - GET_PIP_URL="https://bootstrap.pypa.io/2.6/get-pip.py" + GET_PIP_URL="https://bootstrap.pypa.io/pip/2.6/get-pip.py" + ;; + 2.7 | 2.7.* ) + GET_PIP_URL="https://bootstrap.pypa.io/pip/2.7/get-pip.py" ;; 3.2 | 3.2.* ) GET_PIP_URL="https://bootstrap.pypa.io/3.2/get-pip.py"