mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
check_requirements()
"" Windows double quote (#8016)
This commit is contained in:
parent
07e84370ac
commit
5580b27daf
@ -355,7 +355,7 @@ def check_requirements(requirements=ROOT / 'requirements.txt', exclude=(), insta
|
|||||||
LOGGER.info(f"{s}, attempting auto-update...")
|
LOGGER.info(f"{s}, attempting auto-update...")
|
||||||
try:
|
try:
|
||||||
assert check_online(), f"'pip install {r}' skipped (offline)"
|
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
|
n += 1
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOGGER.warning(f'{prefix} {e}')
|
LOGGER.warning(f'{prefix} {e}')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user