Skip to content

Commit eb07bbf

Browse files
committed
python${PYTHON_VERSION}-pip
1 parent ffece67 commit eb07bbf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cpu/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ RUN \
3030
python${PYTHON_VERSION} \
3131
python${PYTHON_VERSION}-dev \
3232
$( if [ "${PYTHON_VERSION%%.*}" -eq 3 ] && [ "${PYTHON_VERSION#*.}" -lt 10 ]; then echo "python${PYTHON_VERSION}-distutils"; fi ) \
33+
python${PYTHON_VERSION}-pip \
3334
curl \
3435
wget && \
3536
rm -rf /var/lib/apt/lists/* && \
3637
# Set the default python and install PIP packages
3738
update-alternatives --install /usr/bin/python${PYTHON_VERSION%%.*} python${PYTHON_VERSION%%.*} /usr/bin/python${PYTHON_VERSION} 1 && \
38-
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1 && \
39-
# install python dependencies
40-
PIP_URL="https://bootstrap.pypa.io/get-pip.py" && \
41-
curl $PIP_URL | python
39+
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1
4240

4341
ENV PYTHONPATH="/usr/lib/python${PYTHON_VERSION}/site-packages:/usr/local/lib/python${PYTHON_VERSION}/site-packages"
4442

0 commit comments

Comments
 (0)