import subprocess import os def setup_imaginepy(): subprocess.run(["git", "clone", "https://github.com/ItsCEED/Imaginepy"]) os.chdir('Imaginepy') subprocess.run("python -m venv env && source env/bin/activate && python setup.py install", shell=True) print("Done") #os.chdir("..") setup_imaginepy() subprocess.run(["python", "app.py"])