Multiple Python version in WSL2 ubuntu

I was developing some python Azure Function app and the func cli requires python 3.9 however I installed the python 3.10.x which is the latest as of now during my WSL setup. pyenv During the search online looks like the pyenv is the go-to tool for maintaining different versions of Python like nvm/volta in nodejs…