Spaces:
Running
Running
import subprocess | |
def setup_imaginepy(): | |
subprocess.run(["git", "clone", "https://github.com/ItsCEED/Imaginepy"]) | |
subprocess.run(["cd", "Imaginepy"]) | |
subprocess.run(["python", "-m", "venv", "env"]) | |
subprocess.run(["source", "env/bin/activate"]) | |
subprocess.run(["python", "setup.py", "install"]) | |
subprocess.run(['cd',".."]) | |
setup_imaginepy() | |
subprocess.run(["python","app.py"]) |