Download launch.py from crystantine/sd-reactor-node: direct link, hf CLI and curl.
- Browser
- Download file 352 Bytes
-
https://huggingface.co/datasets/crystantine/sd-reactor-node/resolve/main/launch.py
- Command line
-
hf download hf://datasets/crystantine/sd-reactor-node/launch.py
-
curl -L -o launch.py https://huggingface.co/datasets/crystantine/sd-reactor-node/resolve/main/launch.py
352 Bytes
| import importlib.util | |
| import subprocess | |
| import sys | |
| def is_installed(package): | |
| try: | |
| spec = importlib.util.find_spec(package) | |
| except ModuleNotFoundError: | |
| return False | |
| return spec is not None | |
| def run_pip(command, desc): | |
| python = sys.executable | |
| subprocess.check_call([python, "-m", "pip", *command.split(" ")]) | |