pyenv installer code example
Example 1: install pyenv
curl https://pyenv.run | bash
Example 2: pyenv create virtualenv
$ pyenv virtualenv 2.7.16 apps2
$ pyenv virtualenv 3.7.4 apps3
Example 3: pyenv install latest version
pyenv install --list | grep -v - | grep -v a | grep -v b | grep -v c | tail -1
Example 4: pyenv install ubuntu
root@ubuntu:~
> libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev\
> libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl\
> git