import subprocess # Install specific version of Gradio subprocess.run(["pip", "install", "gradio==1.7.7"]) import gradio as gr print(gr.__version__)