Update install.py

Former-commit-id: 4880048ecadfa01ed49d101f0d894424a935caa0
This commit is contained in:
Physton
2023-05-12 00:43:12 +08:00
parent 9f4a4e7a9b
commit cfcabdbed2

View File

@@ -11,7 +11,8 @@ packages = {
"tencentcloud": "tencentcloud-sdk-python",
}
for package_name, package in packages.items():
for package_name in packages:
package = packages[package_name]
try:
if not launch.is_installed(package_name):
launch.run_pip(f"install {package}", f"sd-webui-prompt-all-in-one: {package_name}")