From 7712fd58c256935fca7555543b0211d612eb022c Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Thu, 26 Jan 2017 14:40:55 -0800 Subject: [PATCH] fix docker build I am getting following error without this commit when doing docker build. File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 12, in import setuptools.version File "/usr/local/lib/python2.7/dist-packages/setuptools/version.py", line 1, in import pkg_resources File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 70, in import packaging.version ImportError: No module named packaging.version No idea why this change fix the problem, but it does fix. --- paddle/scripts/docker/Dockerfile | 4 ++-- paddle/scripts/docker/Dockerfile.gpu | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/scripts/docker/Dockerfile b/paddle/scripts/docker/Dockerfile index 79c4efbed0b..341bdde8c60 100644 --- a/paddle/scripts/docker/Dockerfile +++ b/paddle/scripts/docker/Dockerfile @@ -13,8 +13,8 @@ RUN apt-get update && \ apt-get install -y automake clang-3.8 llvm-3.8 libclang-3.8-dev && \ apt-get clean -y -RUN pip install --upgrade pip && \ - pip install 'protobuf==3.1.0.post1' && \ +RUN pip install --upgrade pip +RUN pip install 'protobuf==3.1.0.post1' && \ pip install -U wheel pillow BeautifulSoup && \ pip install -U docopt PyYAML sphinx && \ pip install -U sphinx_rtd_theme recommonmark jupyter diff --git a/paddle/scripts/docker/Dockerfile.gpu b/paddle/scripts/docker/Dockerfile.gpu index 6c1c2225d1a..400e2c90377 100644 --- a/paddle/scripts/docker/Dockerfile.gpu +++ b/paddle/scripts/docker/Dockerfile.gpu @@ -13,8 +13,8 @@ RUN apt-get update && \ apt-get install -y automake clang-3.8 llvm-3.8 libclang-3.8-dev && \ apt-get clean -y -RUN pip install --upgrade pip && \ - pip install 'protobuf==3.1.0.post1' && \ +RUN pip install --upgrade pip +RUN pip install 'protobuf==3.1.0.post1' && \ pip install -U wheel pillow BeautifulSoup && \ pip install -U docopt PyYAML sphinx && \ pip install -U sphinx_rtd_theme recommonmark jupyter -- GitLab