Skip to content

Commit 7712fd5

Browse files
author
Helin Wang
committed
fix docker build
I am getting following error without this commit when doing docker build. File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 12, in <module> import setuptools.version File "/usr/local/lib/python2.7/dist-packages/setuptools/version.py", line 1, in <module> import pkg_resources File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 70, in <module> import packaging.version ImportError: No module named packaging.version No idea why this change fix the problem, but it does fix.
1 parent b1f09f2 commit 7712fd5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

paddle/scripts/docker/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RUN apt-get update && \
1313
apt-get install -y automake clang-3.8 llvm-3.8 libclang-3.8-dev && \
1414
apt-get clean -y
1515

16-
RUN pip install --upgrade pip && \
17-
pip install 'protobuf==3.1.0.post1' && \
16+
RUN pip install --upgrade pip
17+
RUN pip install 'protobuf==3.1.0.post1' && \
1818
pip install -U wheel pillow BeautifulSoup && \
1919
pip install -U docopt PyYAML sphinx && \
2020
pip install -U sphinx_rtd_theme recommonmark jupyter

paddle/scripts/docker/Dockerfile.gpu

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RUN apt-get update && \
1313
apt-get install -y automake clang-3.8 llvm-3.8 libclang-3.8-dev && \
1414
apt-get clean -y
1515

16-
RUN pip install --upgrade pip && \
17-
pip install 'protobuf==3.1.0.post1' && \
16+
RUN pip install --upgrade pip
17+
RUN pip install 'protobuf==3.1.0.post1' && \
1818
pip install -U wheel pillow BeautifulSoup && \
1919
pip install -U docopt PyYAML sphinx && \
2020
pip install -U sphinx_rtd_theme recommonmark jupyter

0 commit comments

Comments
 (0)