creating virtual environments with pyenv code example Example: pyenv create virtualenv $ pyenv virtualenv 2.7.16 apps2 $ pyenv virtualenv 3.7.4 apps3