check_requirements() Windows fix (#7997)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-05-26 19:01:46 +02:00
1 parent 945579699a
commit cd71aa3515
1 file changed
+1 -1
+1 -1
View File
@@ -355,7 +355,7 @@ def check_requirements(requirements=ROOT / 'requirements.txt', exclude=(), insta
LOGGER.info(f"{s}, attempting auto-update...")
try:
assert check_online(), f"'pip install {r}' skipped (offline)"
LOGGER.info(check_output(f"pip install '{r}' {cmds[i] if cmds else ''}", shell=True).decode())
LOGGER.info(check_output(f"pip install {r} {cmds[i] if cmds else ''}", shell=True).decode())
n += 1
except Exception as e:
LOGGER.warning(f'{prefix} {e}')