From 0c17f7d986be7d4302f2ca079bd8fc01137eda41 Mon Sep 17 00:00:00 2001 From: chenzhiyu Date: Thu, 17 Sep 2020 16:35:48 +0800 Subject: [PATCH] fix the get_ver of musl libc --- python/paddle/fluid/core.py | 2 +- python/requirements.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/core.py b/python/paddle/fluid/core.py index cf2ae6fd362..0fbdea2dbca 100644 --- a/python/paddle/fluid/core.py +++ b/python/paddle/fluid/core.py @@ -235,7 +235,7 @@ def less_than_ver(a, b): # The final solution is to upgrade glibc to > 2.22 on the target system. if platform.system().lower() == 'linux': libc_type, libc_ver = get_libc_ver() - if libc_type == 'glibc' and less_than_ver(libc_ver,'2.23'): + if libc_type == 'glibc' and less_than_ver(libc_ver, '2.23'): try: pre_load('libgomp') except Exception as e: diff --git a/python/requirements.txt b/python/requirements.txt index a83261d5963..c8d3b2af179 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -4,10 +4,10 @@ numpy>=1.13, <=1.16.4 ; python_version<"3.5" numpy>=1.13 ; python_version>="3.5" protobuf>=3.1.0 gast==0.3.3 -#matplotlib<=2.2.4 ; python_version<"3.6" +matplotlib<=2.2.4 ; python_version<"3.6" scipy>=0.19.0, <=1.2.1 ; python_version<"3.5" nltk>=3.2.2, <=3.4 ; python_version<"3.5" -#matplotlib<=3.2.1 ; python_version>="3.6" +matplotlib<=3.2.1 ; python_version>="3.6" scipy<=1.3.1 ; python_version=="3.5" scipy ; python_version>"3.5" nltk ; python_version>="3.5" -- GitLab