Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit d7c9b8e

Browse files
committed
Now supports pip only >= 19.3 version, due to Pillow update.
1 parent b62fe8e commit d7c9b8e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/Service/python/install.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,12 @@ def is_pip_present(only_global: bool = False) -> bool:
241241
if m_groups is None:
242242
return False
243243
pip_version = tuple(map(int, str(m_groups.groups()[0]).split('.')))
244-
if pip_version[0] < 19:
245-
return False
246-
return True
244+
if pip_version[0] > 19:
245+
return True
246+
if len(pip_version) > 1:
247+
if pip_version[1] >= 3:
248+
return True
249+
return False
247250
except (OSError, ValueError, TypeError, subprocess.TimeoutExpired) as exception_info:
248251
log_error(f'pip_version raised {type(exception_info).__name__}: {str(exception_info)}')
249252
return False

0 commit comments

Comments
 (0)