From 1374543b932c330c8a6974d89b9132f4561785f7 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Sat, 6 Mar 2021 00:46:37 +0200 Subject: [PATCH] Fix python 2.7 support --- clearml/utilities/pigar/reqs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clearml/utilities/pigar/reqs.py b/clearml/utilities/pigar/reqs.py index 28595b28..6758e6ab 100644 --- a/clearml/utilities/pigar/reqs.py +++ b/clearml/utilities/pigar/reqs.py @@ -325,8 +325,8 @@ def is_std_or_local_lib(name): 'bin/' in mpath and mpath.endswith('.py')): exist = False elif ((sys.prefix not in mpath) and - (sys.base_exec_prefix not in mpath) and - (sys.base_prefix not in mpath)): + (six.PY2 or (sys.base_exec_prefix not in mpath)) and + (six.PY2 or (sys.base_prefix not in mpath))): exist = mpath return exist