Skip to content

Commit 17f5037

Browse files
author
Yancey
authored
use latest pip version in dev and production Docker image (#10760)
* use latest pip version * fix ci * update by comment
1 parent 8e3e65f commit 17f5037

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8
7070
# specify sphinx version as 1.5.6 and remove -U option for [pip install -U
7171
# sphinx-rtd-theme] since -U option will cause sphinx being updated to newest
7272
# version(1.7.1 for now), which causes building documentation failed.
73-
RUN pip install --upgrade pip==9.0.3 && \
73+
RUN easy_install -U pip && \
7474
pip install -U wheel && \
7575
pip install -U docopt PyYAML sphinx==1.5.6 && \
7676
pip install sphinx-rtd-theme==0.1.9 recommonmark

paddle/scripts/docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ EOF
198198
# run paddle version to install python packages first
199199
RUN apt-get update &&\
200200
${NCCL_DEPS}\
201-
apt-get install -y wget python-pip dmidecode python-tk && pip install -U pip==9.0.3 && \
201+
apt-get install -y wget python-pip dmidecode python-tk && easy_install -U pip && \
202202
pip install /*.whl; apt-get install -f -y && \
203203
apt-get clean -y && \
204204
rm -f /*.whl && \

paddle/scripts/paddle_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ EOF
449449
# run paddle version to install python packages first
450450
RUN apt-get update &&\
451451
${NCCL_DEPS}\
452-
apt-get install -y wget python-pip dmidecode python-tk && pip install -U pip==9.0.3 && \
452+
apt-get install -y wget python-pip dmidecode python-tk && easy_install -U pip && \
453453
pip install /*.whl; apt-get install -f -y && \
454454
apt-get clean -y && \
455455
rm -f /*.whl && \

0 commit comments

Comments
 (0)