import subprocess commands = [ "pip install pygit2==1.12.2", "cd /content", "git clone https://github.com/lllyasviel/Fooocus.git", "cd /content/Fooocus", "python entry_with_update.py --share", ] for cmd in commands: print(f"Executing command '{cmd}'...") subprocess.run(cmd, shell=True) print(f"Command '{cmd}' has been executed.")