Spaces:
Runtime error
Runtime error
File size: 286 Bytes
dc9bb94 |
1 2 3 4 5 6 7 8 9 10 11 |
import sys
def pip_install(*args):
import subprocess # nosec - disable B404:import-subprocess check
cli_args = []
for arg in args:
cli_args.extend(str(arg).split(" "))
subprocess.run([sys.executable, "-m", "pip", "install", *cli_args], check=True)
|