Official method to control which python is being used

Is there an official method to control which python is being used? I am on multiple platforms Mac, Windows and Linux. In some cases I variable like pythonCmd and I call a single function to enforce a path. In other cases I’ve used the path statement to control which one is launched but I’ve read that simply changing the path statement doesn’t cover everything such as PYTHONPATH which may need updating as well. Is there an official method to be sure to include everything that needs updating.

Not sure what you mean by “official”, but you might want to look at GitHub - pyenv/pyenv: Simple Python version management

On Windows there is the Python launcher for Windows, maybe it helps.

Official meaning that python.org suggests setting up your system in a specific way to manage the default python or scripting in a certain way to be sure that 100 users are using the correct python.