Technical Docs Manage Multiple Python Versions on Ubuntu with update-alternatives How to use update-alternatives on Ubuntu to register, switch, and verify multiple Python versions for different development environments. Install multiple Python versions 1 2 3 sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3.6 python3.7 python3.8 Configure alternatives Register each binary and select default using update-alternatives.