pyenv install python code example

Example 1: install pyenv

# Linux and Mac only (at the moment)
curl https://pyenv.run | bash

Example 2: pyenv install latest version

pyenv install --list | grep -v - | grep -v a | grep -v b | grep -v c | tail -1

Example 3: pyenv install ubuntu

root@ubuntu:~# apt install -y make build-essential libssl-dev zlib1g-dev \
> libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev\
> libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl\
> git