From bfbffe698653d93be26c183f6cf64556ccc743eb Mon Sep 17 00:00:00 2001 From: wangguanzhong Date: Tue, 2 Feb 2021 16:26:28 +0800 Subject: [PATCH] update check_version (#2157) --- ppdet/utils/check.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ppdet/utils/check.py b/ppdet/utils/check.py index 46b616310..ae64ad133 100644 --- a/ppdet/utils/check.py +++ b/ppdet/utils/check.py @@ -94,6 +94,8 @@ def check_version(version='1.7.0'): for i in six.moves.range(length): if version_installed[i] > version_split[i]: return + if len(version_installed[i]) == 1 and len(version_split[i]) > 1: + return if version_installed[i] < version_split[i]: raise Exception(err) -- GitLab