From 75feeb797c4a9553f4274860c6c278f1fc628f60 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 24 Mar 2021 16:42:54 +0100 Subject: [PATCH] YOLOv5 PyTorch Hub models >> check_requirements() (#2591) Prints 'Please restart runtime or rerun command for update to take effect.' following package auto-install to inform users to restart/rerun. --- utils/general.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/general.py b/utils/general.py index ef89ea3a0f03..50d60c519b04 100755 --- a/utils/general.py +++ b/utils/general.py @@ -100,6 +100,7 @@ def check_requirements(file='requirements.txt', exclude=()): except Exception as e: # DistributionNotFound or VersionConflict if requirements not met print(f"{prefix} {e.req} not found and is required by YOLOv5, attempting auto-install...") print(subprocess.check_output(f"pip install '{e.req}'", shell=True).decode()) + print(f'Please restart runtime or rerun command for update to take effect.') def check_img_size(img_size, s=32):