1 import os 2 import subprocess 3 import sys 4 from .document_nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS 5 from .utils import folder_paths 6 from .server import WEB_DIRECTORY 7 8 __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']
9
10 def install_requirements():
11 requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
12 try:
13 subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", requirements_path])
14 print("Successfully installed requirements for ComfyUI-Documents")
15 except subprocess.CalledProcessError as e:
16 print(f"Error installing requirements: {e}")
1 import subprocess 2 import sys 3 import os 4 5 def install_requirements(): 6 requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt") 7 try: 8 subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", requirements_path])
4
5 def install_requirements():
6 requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
7 try:
8 subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", requirements_path])
9 print("Successfully installed requirements for ComfyUI-Documents")
10 except subprocess.CalledProcessError as e:
11 print(f"Error installing requirements: {e}")