install pyenv and 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
# Linux and Mac only (at the moment)
curl https://pyenv.run | bash
$ pyenv virtualenv 2.7.16 apps2
$ pyenv virtualenv 3.7.4 apps3