The current python version will be the version used in your new virtual enviornment
python -V
Python 3.12.0
list other versions installed
pyenv versions
change version
pyenv global 3.11.4
use a meaningfull name. in this example I will use example
pyenv virtualenv example
mkdir ~/example
echo "example" > ~/example/.python-version
cd ~/example/
pyenv version
pyenv uninstall example