From 3448438105be76219c29485e7c72958d81dd42e4 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Mon, 24 Apr 2017 21:49:16 +0800 Subject: [PATCH] Fix bug in protobuf. Currently, Paddle only support Python use the sample version of Protobuf that CPP do. --- paddle/setup.py.in | 2 +- python/setup.py.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/setup.py.in b/paddle/setup.py.in index 0b62436a7f8..06d55d3abc6 100644 --- a/paddle/setup.py.in +++ b/paddle/setup.py.in @@ -23,7 +23,7 @@ setup(name="py_paddle", install_requires = [ 'nltk>=3.2.2', 'numpy>=1.8.0', # The numpy is required. - 'protobuf>=${PROTOBUF_VERSION}' # The paddle protobuf version + 'protobuf==${PROTOBUF_VERSION}' # The paddle protobuf version ], url='http://www.paddlepaddle.org/', license='Apache 2.0', diff --git a/python/setup.py.in b/python/setup.py.in index 83e505f566d..59e967df719 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -16,7 +16,7 @@ setup(name='paddle', packages=packages, install_requires=[ "numpy", - "protobuf==3.1.0", + "protobuf==${PROTOBUF_VERSION}", "matplotlib", ], package_dir={ -- GitLab