I just began to use pyenv to manage my python versions, and began to use the pyenv virtualenv plugin to manage my virtualenvs, and so far, I have loved it. One thing I miss
There's a workaround
In your project directory, create a .python-version
file. Assuming you already installed some virtual environment using pyenv-virtualenv
, then append this line to it(you may want to change the version number):
3.7.1/envs/your-project-name@3.7.1
Whenever you enter into the directory, the correct python version will be used, and it works pretty well.