hotfix: make_pip_cmd - don't apply -s always

https://github.com/ltdrdata/ComfyUI-Manager/issues/1667
This commit is contained in:
Dr.Lt.Data
2025-03-19 02:01:17 +09:00
parent 55fcb00168
commit 9e66da174e
3 changed files with 12 additions and 6 deletions

View File

@@ -35,11 +35,17 @@ def add_python_path_to_env():
def make_pip_cmd(cmd):
if use_uv:
return [sys.executable, '-s', '-m', 'uv', 'pip'] + cmd
if 'python_embeded' in sys.executable:
if use_uv:
return [sys.executable, '-s', '-m', 'uv', 'pip'] + cmd
else:
return [sys.executable, '-s', '-m', 'pip'] + cmd
else:
return [sys.executable, '-s', '-m', 'pip'] + cmd
# FIXED: https://github.com/ltdrdata/ComfyUI-Manager/issues/1667
if use_uv:
return [sys.executable, '-m', 'uv', 'pip'] + cmd
else:
return [sys.executable, '-m', 'pip'] + cmd
# DON'T USE StrictVersion - cannot handle pre_release version
# try: