From 3c823b4cb78ce23430cabb98a6733a7fe34755e0 Mon Sep 17 00:00:00 2001 From: Gilles Peiffer Date: Wed, 3 Jun 2026 17:44:07 +0000 Subject: [PATCH] Fix pip bootstrap on Python 3.9: use version-pinned get-pip.py pip 26.1 raised the minimum supported Python in the rolling https://bootstrap.pypa.io/get-pip.py to 3.10, so it now errors out on Python 3.9. Switch to the version-pinned URL that pip's own error message recommends, matching the existing release-10.4-LTS fix that did the same for Python 3.8. --- ubuntu/python/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu/python/Dockerfile b/ubuntu/python/Dockerfile index bdc678d..c42b605 100644 --- a/ubuntu/python/Dockerfile +++ b/ubuntu/python/Dockerfile @@ -11,7 +11,7 @@ ARG virtualenv_version="20.8.0" # Installs python 3.8 and virtualenv for Spark and Notebooks RUN apt-get update \ && apt-get install curl software-properties-common -y python${python_version} python${python_version}-dev python${python_version}-distutils \ - && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ + && curl https://bootstrap.pypa.io/pip/${python_version}/get-pip.py -o get-pip.py \ && /usr/bin/python${python_version} get-pip.py --index-url $package_index_url pip==${pip_version} setuptools==${setuptools_version} wheel==${wheel_version} \ && rm get-pip.py