Ref: https://www.liquidweb.com/kb/how-to-install-pyenv-on-ubuntu-18-04/
Step #1: Install pyenv and dependencies using:
sudo apt-get update; sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
Step #2: Clone the Repository To install the latest version of pyenv and provide a straightforward method for updating it, run the following command to pull it down from GitHub: