Build / install Gradio from Source code

$ pip install gradio
  • from local network:
$ pip install
  • from local machine:
$ pip install ../gradio
  • from local and auto sync modification:
$ pip install -e .

Uninstall for pip installed

$ pip uninstall gradio
  • Uninstall for local installed:
$ rm  /usr/local/lib/python3.8/dist-packages/easy-install.pth
$ rm /usr/local/bin/gradio
$ rm -r /usr/local/lib/python3.8/dist-packages/gradio
$ rm /usr/local/lib/python3.8/dist-packages/gradio.egg-link

Build from source

  • install pnpm, (Note: pnpm latest version won’t work with build gui, use 6.x instead.)
$ wget -qO- | PNPM_VERSION=6.32.11 sh

Add path to .bashrc

export PATH=$PATH:/root/.local/share/pnpm/


$ source ~/.bashrc
  • install backend:
$ bash scripts/
  • build front end:
$ bash scripts/

reference guide:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store