From b7099851b7d5c7cece39a5d990ef530119e3b4b3 Mon Sep 17 00:00:00 2001 From: Luca Antiga Date: Tue, 10 Dec 2024 15:40:40 +0100 Subject: [PATCH] Install setuptools via pip in base Docker image (#20487) --- dockers/base-cuda/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockers/base-cuda/Dockerfile b/dockers/base-cuda/Dockerfile index 0e5268d311054..0e56f2fa93bd9 100644 --- a/dockers/base-cuda/Dockerfile +++ b/dockers/base-cuda/Dockerfile @@ -59,7 +59,6 @@ RUN \ add-apt-repository ppa:deadsnakes/ppa && \ apt-get install -y \ python${PYTHON_VERSION} \ - python3-setuptools \ python${PYTHON_VERSION}-dev \ && \ update-alternatives --install /usr/bin/python${PYTHON_VERSION%%.*} python${PYTHON_VERSION%%.*} /usr/bin/python${PYTHON_VERSION} 1 && \ @@ -79,6 +78,8 @@ RUN \ curl https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION} && \ # Disable cache \ pip config set global.cache-dir false && \ + # Install recent setuptools to obtain pkg_resources \ + pip install setuptools==75.6.0 && \ # set particular PyTorch version \ pip install -q wget packaging && \ python -m wget https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/adjust-torch-versions.py && \