@@ -72,34 +72,34 @@ RUN apt-get install -y python3 python3-dev python3-pip
72
72
# specify sphinx version as 1.5.6 and remove -U option for [pip install -U
73
73
# sphinx-rtd-theme] since -U option will cause sphinx being updated to newest
74
74
# version(1.7.1 for now), which causes building documentation failed.
75
- RUN easy_install -U pip && \
75
+ RUN pip3 install -U wheel && \
76
+ pip3 install -U docopt PyYAML sphinx==1.5.6 && \
77
+ pip3 install sphinx-rtd-theme==0.1.9 recommonmark
78
+ easy_install -U pip && \
76
79
pip install -U wheel && \
77
80
pip install -U docopt PyYAML sphinx==1.5.6 && \
78
81
pip install sphinx-rtd-theme==0.1.9 recommonmark && \
79
- pip3 install -U wheel && \
80
- pip3 install -U docopt PyYAML sphinx==1.5.6 && \
81
- pip3 install sphinx-rtd-theme==0.1.9 recommonmark
82
82
83
- RUN pip install pre-commit 'ipython==5.3.0' && \
84
- pip install 'ipykernel==4.6.0' 'jupyter==1.0.0' && \
85
- pip install opencv-python && \
86
- pip3 install pre-commit 'ipython==5.3.0' && \
83
+ RUN pip3 install pre-commit 'ipython==5.3.0' && \
87
84
pip3 install 'ipykernel==4.6.0' 'jupyter==1.0.0' && \
88
85
pip3 install opencv-python
86
+ pip install pre-commit 'ipython==5.3.0' && \
87
+ pip install 'ipykernel==4.6.0' 'jupyter==1.0.0' && \
88
+ pip install opencv-python && \
89
89
90
90
# For docstring checker
91
- RUN pip install pylint pytest astroid isort LinkChecker
92
91
RUN pip3 install pylint pytest astroid isort
92
+ RUN pip install pylint pytest astroid isort LinkChecker
93
93
94
94
COPY ./python/requirements.txt /root/
95
- RUN pip install -r /root/requirements.txt
96
95
RUN pip3 install -r /root/requirements.txt
96
+ RUN pip install -r /root/requirements.txt
97
97
98
98
# To fix https://github.com/PaddlePaddle/Paddle/issues/1954, we use
99
99
# the solution in https://urllib3.readthedocs.io/en/latest/user-guide.html#ssl-py2
100
100
RUN apt-get install -y libssl-dev libffi-dev
101
- RUN pip install certifi urllib3[secure]
102
101
RUN pip3 install certifi urllib3[secure]
102
+ RUN pip install certifi urllib3[secure]
103
103
104
104
105
105
# Install woboq_codebrowser to /woboq
0 commit comments