From 454a180deaa3da646abc93de772fef09fc29d013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8F=AD=E6=89=AC?= Date: Tue, 14 Apr 2026 16:17:50 +0800 Subject: [PATCH] fix docker pip version --- docker/Dockerfile.extra_install | 5 +++-- docker/Dockerfile.ubuntu_base | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile.extra_install b/docker/Dockerfile.extra_install index f8070bd3..8068c0b8 100644 --- a/docker/Dockerfile.extra_install +++ b/docker/Dockerfile.extra_install @@ -112,9 +112,10 @@ RUN set -eux; \ done # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" -ENV PYTHON_PIP_VERSION 23.0.1 +# pip>=23.3 required for Python 3.12 (pkgutil.ImpImporter removed; older pip crashes on any install) +ENV PYTHON_PIP_VERSION 24.3.1 # https://github.com/docker-library/python/issues/365 -ENV PYTHON_SETUPTOOLS_VERSION 65.5.1 +ENV PYTHON_SETUPTOOLS_VERSION 75.8.2 # https://github.com/pypa/get-pip ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py ENV PYTHON_GET_PIP_SHA256 dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9 diff --git a/docker/Dockerfile.ubuntu_base b/docker/Dockerfile.ubuntu_base index f56be6f7..b3a3ee33 100644 --- a/docker/Dockerfile.ubuntu_base +++ b/docker/Dockerfile.ubuntu_base @@ -112,9 +112,10 @@ RUN set -eux; \ done # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" -ENV PYTHON_PIP_VERSION 23.0.1 +# pip>=23.3 required for Python 3.12 (pkgutil.ImpImporter removed; older pip crashes on any install) +ENV PYTHON_PIP_VERSION 24.3.1 # https://github.com/docker-library/python/issues/365 -ENV PYTHON_SETUPTOOLS_VERSION 65.5.1 +ENV PYTHON_SETUPTOOLS_VERSION 75.8.2 # https://github.com/pypa/get-pip ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py ENV PYTHON_GET_PIP_SHA256 dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9