From 1db0cb8a4603b45847fc57f3285b801c4d31911a Mon Sep 17 00:00:00 2001 From: henryruhs Date: Tue, 4 Aug 2026 12:51:20 +0200 Subject: [PATCH] uninstall every onnxruntime first --- facefusion/installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/facefusion/installer.py b/facefusion/installer.py index db4169f5..037d94a1 100644 --- a/facefusion/installer.py +++ b/facefusion/installer.py @@ -71,6 +71,7 @@ def run(program : ArgumentParser) -> None: onnxruntime_name, onnxruntime_version = ONNXRUNTIME_SET.get(args.onnxruntime) commands.append(onnxruntime_name + '==' + onnxruntime_version) - subprocess.call([ shutil.which('pip'), 'uninstall', 'onnxruntime', onnxruntime_name, '-y', '-q' ]) + for onnxruntime_package, _ in ONNXRUNTIME_SET.values(): + subprocess.call([ shutil.which('pip'), 'uninstall', onnxruntime_package, '-y', '-q' ]) subprocess.call(commands)