trishv commited on
Commit
ef922e0
·
1 Parent(s): db79e24

Update transformers/src/transformers/utils/versions.py

Browse files
transformers/src/transformers/utils/versions.py CHANGED
@@ -105,10 +105,10 @@ def require_version(requirement: str, hint: Optional[str] = None) -> None:
105
  f"The '{requirement}' distribution was not found and is required by this application. {hint}"
106
  )
107
 
108
- # check that the right version is installed if version number or a range was provided
109
- if want_ver is not None:
110
- for op, want_ver in wanted.items():
111
- _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
112
 
113
 
114
  def require_version_core(requirement):
 
105
  f"The '{requirement}' distribution was not found and is required by this application. {hint}"
106
  )
107
 
108
+ # # check that the right version is installed if version number or a range was provided
109
+ # if want_ver is not None:
110
+ # for op, want_ver in wanted.items():
111
+ # _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
112
 
113
 
114
  def require_version_core(requirement):