MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / try_install_from_wheel

Function try_install_from_wheel

install.py:69–75  ·  view source on GitHub ↗
(pkg_name: str, wheel_url: str)

Source from the content-addressed store, hash-verified

67 except Exception:
68 return None
69def try_install_from_wheel(pkg_name: str, wheel_url: str):
70 if get_installed_version(pkg_name) is not None:
71 return
72 try:
73 launch.run_pip(f"install {wheel_url}", f" {pkg_name} requirement for depthmap script")
74 except Exception as e:
75 print('Failed to install wheel for Depth Anything support. It won\'t work.')
76try_install_from_wheel(
77 "depth_anything",
78 "https://github.com/huchenlei/Depth-Anything/releases/download/v1.0.0/depth_anything-2024.1.22.0-py2.py3-none-any.whl")

Callers 1

install.pyFile · 0.85

Calls 1

get_installed_versionFunction · 0.85

Tested by

no test coverage detected