Skip to content

Commit 7bd13e1

Browse files
kinghuinnepeplwu
authored andcommitted
fix pip error (#115)
1 parent c0ace47 commit 7bd13e1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

requirements.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ pre-commit
33
protobuf >= 3.1.0
44
yapf == 0.26.0
55
pyyaml
6-
numpy >= 1.12.0
6+
numpy
7+
#[py2]numpy == 1.16.0
78
Pillow
89
six >= 1.10.0
910
chardet == 3.0.4
1011
requests
1112
pandas
13+
#[py2]pandas == 0.24.0
1214
flake8

setup.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ def python_version():
3131
max_version, mid_version, min_version = python_version()
3232

3333
REQUIRED_PACKAGES = [
34-
'numpy >= 1.12.0', 'six >= 1.10.0', 'pandas', 'protobuf >= 3.1.0', 'pyyaml',
35-
'Pillow', 'requests', "visualdl >= 1.3.0"
34+
'six >= 1.10.0', 'protobuf >= 3.1.0', 'pyyaml', 'Pillow', 'requests',
35+
"visualdl >= 1.3.0"
3636
]
3737

3838
if max_version < 3:
39-
REQUIRED_PACKAGES += ["enum"]
39+
REQUIRED_PACKAGES += ["enum", "numpy == 1.16.0", "pandas == 0.24.0"]
40+
else:
41+
REQUIRED_PACKAGES += ["numpy", "pandas"]
4042

4143
setup(
4244
name='paddlehub',

0 commit comments

Comments
 (0)