Skip to content

Commit b709985

Browse files
authored
Install setuptools via pip in base Docker image (#20487)
1 parent 9983f3a commit b709985

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dockers/base-cuda/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ RUN \
5959
add-apt-repository ppa:deadsnakes/ppa && \
6060
apt-get install -y \
6161
python${PYTHON_VERSION} \
62-
python3-setuptools \
6362
python${PYTHON_VERSION}-dev \
6463
&& \
6564
update-alternatives --install /usr/bin/python${PYTHON_VERSION%%.*} python${PYTHON_VERSION%%.*} /usr/bin/python${PYTHON_VERSION} 1 && \
@@ -79,6 +78,8 @@ RUN \
7978
curl https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION} && \
8079
# Disable cache \
8180
pip config set global.cache-dir false && \
81+
# Install recent setuptools to obtain pkg_resources \
82+
pip install setuptools==75.6.0 && \
8283
# set particular PyTorch version \
8384
pip install -q wget packaging && \
8485
python -m wget https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/adjust-torch-versions.py && \

0 commit comments

Comments
 (0)