diff --git a/ppdet/utils/check.py b/ppdet/utils/check.py index 46b61631031e022f5daed01a6d6ef86c80e59b2b..ae64ad1334e613a3fb15599b55fbcbb76aa0f10d 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)