From 60eea09629e5b8bcbdd4bd0169189bc79c2ce026 Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Thu, 1 Feb 2024 19:48:57 -0500 Subject: [PATCH] feat(installer): *always* force-reinstall This has repeatedly shown itself useful in fixing install issues, especially regarding pytorch CPU/GPU version, so there is little downside to making this the default. Performance impact of this should be negligible. Packages will be reinstalled from pip cache if possible, and downloaded only if necessary. Impact may be felt on slower disks. --- installer/lib/installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/lib/installer.py b/installer/lib/installer.py index 525e5f894a..bfb30d6cca 100644 --- a/installer/lib/installer.py +++ b/installer/lib/installer.py @@ -220,10 +220,11 @@ class InvokeAiInstance: pip = local[self.pip] - ( + _ = ( pip[ "install", "--require-virtualenv", + "--force-reinstall", "--use-pep517", str(src) + (optional_modules if optional_modules else ""), "--find-links" if find_links is not None else None,