From 0a9d9925444f0c218921cf4a36d7f07aa7907764 Mon Sep 17 00:00:00 2001 From: Tran Xen <137925069+glucauze@users.noreply.github.com> Date: Mon, 7 Aug 2023 12:10:20 +0200 Subject: [PATCH] enforce package install, less efficient but more robust --- install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.py b/install.py index e9aa578..f903986 100644 --- a/install.py +++ b/install.py @@ -36,7 +36,7 @@ def is_installed(package: str) -> bool: required_version = parse(package.split(">=")[1]) return installed_version >= required_version else: - return True + return launch.is_installed(package_name) print("Checking faceswaplab requirements") with open(req_file) as file: