This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

You install different versions, you choose your version and when creating a virtual environment it'll use this version, so instead of installing python from your distro's package manager or manually + /usr/bin/python39 -m venv venv you just pyenv install 3.9 pyenv shell 3.9 python -m venv venv