Skip to content

Commit 3448438

Browse files
committed
Fix bug in protobuf.
Currently, Paddle only support Python use the sample version of Protobuf that CPP do.
1 parent 756ee92 commit 3448438

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddle/setup.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ setup(name="py_paddle",
2323
install_requires = [
2424
'nltk>=3.2.2',
2525
'numpy>=1.8.0', # The numpy is required.
26-
'protobuf>=${PROTOBUF_VERSION}' # The paddle protobuf version
26+
'protobuf==${PROTOBUF_VERSION}' # The paddle protobuf version
2727
],
2828
url='http://www.paddlepaddle.org/',
2929
license='Apache 2.0',

python/setup.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ setup(name='paddle',
1616
packages=packages,
1717
install_requires=[
1818
"numpy",
19-
"protobuf==3.1.0",
19+
"protobuf==${PROTOBUF_VERSION}",
2020
"matplotlib",
2121
],
2222
package_dir={

0 commit comments

Comments
 (0)