diff --git a/paddlehub/common/utils.py b/paddlehub/common/utils.py index 7bd4e74a001ff68aac4d792404bbb04878b3b2f6..2ac04673151c876cee0982caac2da34b6a494977 100644 --- a/paddlehub/common/utils.py +++ b/paddlehub/common/utils.py @@ -322,10 +322,10 @@ def strflist_version(version_list): version_list = version_list[1:-1].split(",") result = "" if version_list[0] != "-1.0.0": - result = ">" + version_list[0] + result = ">=" + version_list[0] if version_list[1] != "99.0.0": if result != "": - result = result + ", " + "<" + version_list[1] + result = result + ", " + "<=" + version_list[1] else: - result = "<" + version_list[1] + result = "<=" + version_list[1] return result if result != "" else "-"