glenn-jocher
commited on
Commit
•
5580b27
1
Parent(s):
07e8437
`check_requirements()` "" Windows double quote (#8016)
Browse files- utils/general.py +1 -1
utils/general.py
CHANGED
@@ -355,7 +355,7 @@ def check_requirements(requirements=ROOT / 'requirements.txt', exclude=(), insta
|
|
355 |
LOGGER.info(f"{s}, attempting auto-update...")
|
356 |
try:
|
357 |
assert check_online(), f"'pip install {r}' skipped (offline)"
|
358 |
-
LOGGER.info(check_output(f
|
359 |
n += 1
|
360 |
except Exception as e:
|
361 |
LOGGER.warning(f'{prefix} {e}')
|
|
|
355 |
LOGGER.info(f"{s}, attempting auto-update...")
|
356 |
try:
|
357 |
assert check_online(), f"'pip install {r}' skipped (offline)"
|
358 |
+
LOGGER.info(check_output(f'pip install "{r}" {cmds[i] if cmds else ""}', shell=True).decode())
|
359 |
n += 1
|
360 |
except Exception as e:
|
361 |
LOGGER.warning(f'{prefix} {e}')
|