From b55c8cd7ac0cedea040fee0fba0f22e8291d0569 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Sat, 18 Oct 2025 16:12:09 -0700 Subject: [PATCH] Fix profiler error if using --skip-requirements --- installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer.py b/installer.py index 97e40dd38..2f73d90aa 100644 --- a/installer.py +++ b/installer.py @@ -1294,11 +1294,11 @@ def install_optional(): def install_requirements(): t_start = time.time() + if args.skip_requirements and not args.requirements: + return if args.profile: pr = cProfile.Profile() pr.enable() - if args.skip_requirements and not args.requirements: - return if int(sys.version_info.minor) >= 13: install('audioop-lts') if not installed('diffusers', quiet=True): # diffusers are not installed, so run initial installation