From 81d0fd991685f7e6f49434b81f644c0773ebb925 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 7 Jan 2024 11:57:28 +0900 Subject: [PATCH] fix: `pip install -U` instead of `pip install` for `import fix` --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index e939cb1b..54845510 100644 --- a/__init__.py +++ b/__init__.py @@ -28,7 +28,7 @@ except: print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.") -version = [1, 25, 2] +version = [1, 25, 3] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') print(f"### Loading: ComfyUI-Manager ({version_str})") @@ -1518,7 +1518,7 @@ async def fix_custom_node(request): if 'pip' in json_data: for pname in json_data['pip']: - install_cmd = [sys.executable, "-m", "pip", "install", pname] + install_cmd = [sys.executable, "-m", "pip", "install", '-U', pname] try_install_script(json_data['files'][0], ".", install_cmd) if res: