Skip to content

Commit 63b13db

Browse files
committed
Fix pip3 issues
test=develop
1 parent 2d3d930 commit 63b13db

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ ENV HOME /root
2323
COPY ./paddle/scripts/docker/root/ /root/
2424

2525
RUN apt-get update || \
26-
apt-get install -y --allow-unauthenticated libnccl2=2.1.2-1+cuda8.0 libnccl-dev=2.1.2-1+cuda8.0
27-
28-
RUN apt-get install -y --allow-downgrades patchelf \
26+
apt-get install -y --allow-downgrades patchelf \
2927
git python-pip python-dev python-opencv openssh-server bison \
30-
python3 python3-pip python3-dev \
28+
libnccl2=2.1.2-1+cuda8.0 libnccl-dev=2.1.2-1+cuda8.0 \
3129
wget unzip unrar tar xz-utils bzip2 gzip coreutils ntp \
3230
curl sed grep graphviz libjpeg-dev zlib1g-dev \
3331
python-matplotlib gcc-4.8 g++-4.8 \
@@ -66,6 +64,8 @@ RUN git config --global credential.helper store
6664
# Fix locales to en_US.UTF-8
6765
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
6866

67+
RUN apt-get install -y python3 python3-dev python3-pip
68+
6969
# FIXME: due to temporary ipykernel dependency issue, specify ipykernel jupyter
7070
# version util jupyter fixes this issue.
7171

@@ -76,7 +76,6 @@ RUN easy_install -U pip && \
7676
pip install -U wheel && \
7777
pip install -U docopt PyYAML sphinx==1.5.6 && \
7878
pip install sphinx-rtd-theme==0.1.9 recommonmark && \
79-
pip3 install --upgrade pip && \
8079
pip3 install -U wheel && \
8180
pip3 install -U docopt PyYAML sphinx==1.5.6 && \
8281
pip3 install sphinx-rtd-theme==0.1.9 recommonmark

0 commit comments

Comments
 (0)