Skip to content

Commit

Permalink
check_requirements() Windows fix (#7997)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed May 26, 2022
1 parent 9455796 commit cd71aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down

0 comments on commit cd71aa3

Please sign in to comment.