I have multiple python versions managed by pyenv. I want to upgrade one of my virtual environments from 3.7.13 to 3.10.3 with the ‘—upgrade’ option as:
>deactivate
>pyenv local 3.10.3
>python3 -m venv --upgrade .venv
>. .venv/bin/activate
> python -V
Python 3.7.13
I expect the '—upgrade' would change the python version to 3.10.3 but it did not it stayed with 3.7.13
I understand it may be easier just discard and recreate the virtual environment, but I really want to learn how '—upgrade' should work