@@ -22,10 +22,12 @@ ENV HOME /root
22
22
# Add bash enhancements
23
23
COPY ./paddle/scripts/docker/root/ /root/
24
24
25
- RUN apt-get update && \
26
- apt-get install -y --allow-downgrades patchelf \
25
+ 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 \
27
29
git python-pip python-dev python-opencv openssh-server bison \
28
- libnccl2=2.1.2-1+cuda8.0 libnccl -dev=2.1.2-1+cuda8.0 \
30
+ python3 python3-pip python3 -dev \
29
31
wget unzip unrar tar xz-utils bzip2 gzip coreutils ntp \
30
32
curl sed grep graphviz libjpeg-dev zlib1g-dev \
31
33
python-matplotlib gcc-4.8 g++-4.8 \
@@ -73,22 +75,32 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8
73
75
RUN easy_install -U pip && \
74
76
pip install -U wheel && \
75
77
pip install -U docopt PyYAML sphinx==1.5.6 && \
76
- pip install sphinx-rtd-theme==0.1.9 recommonmark
78
+ pip install sphinx-rtd-theme==0.1.9 recommonmark && \
79
+ pip3 install --upgrade pip && \
80
+ pip3 install -U wheel && \
81
+ pip3 install -U docopt PyYAML sphinx==1.5.6 && \
82
+ pip3 install sphinx-rtd-theme==0.1.9 recommonmark
77
83
78
84
RUN pip install pre-commit 'ipython==5.3.0' && \
79
85
pip install 'ipykernel==4.6.0' 'jupyter==1.0.0' && \
80
- pip install opencv-python
86
+ pip install opencv-python && \
87
+ pip3 install pre-commit 'ipython==5.3.0' && \
88
+ pip3 install 'ipykernel==4.6.0' 'jupyter==1.0.0' && \
89
+ pip3 install opencv-python
81
90
82
91
# For docstring checker
83
92
RUN pip install pylint pytest astroid isort LinkChecker
93
+ RUN pip3 install pylint pytest astroid isort
84
94
85
95
COPY ./python/requirements.txt /root/
86
96
RUN pip install -r /root/requirements.txt
97
+ RUN pip3 install -r /root/requirements.txt
87
98
88
99
# To fix https://github.com/PaddlePaddle/Paddle/issues/1954, we use
89
100
# the solution in https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2
90
101
RUN apt-get install -y libssl-dev libffi-dev
91
102
RUN pip install certifi urllib3[secure]
103
+ RUN pip3 install certifi urllib3[secure]
92
104
93
105
94
106
# Install woboq_codebrowser to /woboq
0 commit comments