pyenv install 3.8:latest
Will install the latest 3.8 Python version.
pyenv install 3.8:latest
Will install the latest 3.8 Python version.
Q: Now you want to build your Fortran extension with a compiler supporting OpenACC. What now?
This should show relatively clear that this tool is just an edgecase of a quite general problem. I recommend a general solution (like spack).
If you need that level of control, use Spack or Nix or whatever.
Whenever threads like this come up, people have a weird tendency to hold Python on some kind of pedestal above other languages.
I can't think of a single language package manager or installer or version manager that makes even a faint attempt to control system level dependencies like a Fortran compiler. Why is Python somehow bad for failing to manage this? The problem is and should remain out of scope for any particular language tool chain.
I also don't think this is a failure of "python" as some others have raised that in the vincinity. Managing binaries is just out-of-scope and should be left to another tool - such as given with pyenv. It's solving this problem in a narrow way, which most commenters find confusing and I find a bit useless compared to alternatives!