From 81d4809f0a5655e6d318aaf00fbb0b0529b91f85 Mon Sep 17 00:00:00 2001 From: Bitfroest Date: Fri, 22 Feb 2019 00:06:58 +0100 Subject: [PATCH] use subprocess for pip install --- ContentCenterLoader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContentCenterLoader.py b/ContentCenterLoader.py index ca81a11..098ac16 100644 --- a/ContentCenterLoader.py +++ b/ContentCenterLoader.py @@ -44,7 +44,7 @@ def install(path, requirementsFileName): else: with open(requirementsFileName) as f: for line in f: - pip._internal.main(['install', '-U', line, '-t', path, '--ignore-installed', '-q']) + subprocess.check_call(['python','-m','pip','install', '-U', line, '-t', path, '--ignore-installed', '-q']) def update(context):