pyenv is the most popular Python version manager on macOS and Linux. It intercepts python commands and redirects them to the correct installed version.
And it worked.
: Always include the .python-version file in your Git repository. This acts as documentation for the project's requirements.