how to use pyenv inside virtual environment code example Example: pyenv create virtualenv $ pyenv virtualenv 2.7.16 apps2 $ pyenv virtualenv 3.7.4 apps3