未验证 提交 5a54f3d0 编写于 作者: W wangguanzhong 提交者: GitHub

update check_version (#2158)

上级 2615ca37
...@@ -94,6 +94,8 @@ def check_version(version='1.7.0'): ...@@ -94,6 +94,8 @@ def check_version(version='1.7.0'):
for i in six.moves.range(length): for i in six.moves.range(length):
if version_installed[i] > version_split[i]: if version_installed[i] > version_split[i]:
return return
if len(version_installed[i]) == 1 and len(version_split[i]) > 1:
return
if version_installed[i] < version_split[i]: if version_installed[i] < version_split[i]:
raise Exception(err) raise Exception(err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册