pyenv install virtualenv code example
Example 1: install pyenv
# Linux and Mac only (at the moment)
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