improve: PIPFixer

- now add numpy restriction when fixing opencv
This commit is contained in:
Dr.Lt.Data
2025-03-03 17:58:22 +09:00
parent e71e68e298
commit c7248c2d47
3 changed files with 3 additions and 3 deletions

View File

@@ -357,7 +357,7 @@ class PIPFixer:
if len(targets) > 0:
for x in targets:
cmd = make_pip_cmd(['install', f"{x}=={versions[0].version_string}"])
cmd = make_pip_cmd(['install', f"{x}=={versions[0].version_string}", "numpy<2"])
subprocess.check_output(cmd, universal_newlines=True)
logging.info(f"[ComfyUI-Manager] 'opencv' dependencies were fixed: {targets}")