From 6995eb62a37f3265b88a7181db17719173c3620a Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 26 May 2022 19:01:46 +0200 Subject: [PATCH] `check_requirements()` Windows fix (#7997) --- utils/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/general.py b/utils/general.py index eb1125e4ebfa..3789f0519661 100755 --- a/utils/general.py +++ b/utils/general.py @@ -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}')