1 / 2
You can specify Python versions and the additional packages to install. However, everything else must be done manually… Also, the OS is fixed in Gradio spaces.
import sys, platform
from importlib import metadata as md
print("Python:", platform.python_version(), sys.implementation.name)
print("OS:", platform.uname())
print("\n".join(sorted(f"{d.metadata['Name']}=={d.version}" for d in md.distributions())))
3