get_installed_packages: return python packages names in lowercase (#1614)

This commit is contained in:
Alexander Piskun 2025-03-06 15:04:33 +03:00 committed by GitHub
parent 3f729aaf03
commit 39df2743fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,7 +246,7 @@ def get_installed_packages(renew=False):
if y[0] == 'Package' or y[0].startswith('-'): if y[0] == 'Package' or y[0].startswith('-'):
continue continue
pip_map[y[0]] = y[1] pip_map[y[0].lower()] = y[1]
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
logging.error("[ComfyUI-Manager] Failed to retrieve the information of installed pip packages.") logging.error("[ComfyUI-Manager] Failed to retrieve the information of installed pip packages.")
return set() return set()