pyenv / pyenv-virtualenv

a pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)
MIT License
6.37k stars 403 forks source link

`pyenv-virtualenv` not auto-resolve version #441

Closed psydvl closed 1 year ago

psydvl commented 2 years ago

pyenv-virtualenv not auto-resolve python version like pyenv can (for example, now, pyenv install 3.10 will install current latest 3.10.8) https://github.com/pyenv/pyenv#prefix-auto-resolution

Command pyenv virtualenv 3.10 venv will create folder $PYENV_ROOT/versions/3.10/envs/venv instead of expected $PYENV_ROOT/versions/3.10.8/envs/venv

This also will break pyenv auto-resolve option, because even after delete virtual environment folder, $PYENV_ROOT/versions/3.10 will exist Related pyenv issue: https://github.com/pyenv/pyenv/issues/2533

NB: Also, I've faced fork-bomb problem somehow with this, when delete one of environments, caused by pyenv sh-activate in eval "$(pyenv virtualenv-init -)", but I didn't investigate this deeply, just completely remove $PYENV_ROOT and recreate it.

Prerequisite

Description