.python Version Exclusive -

For pyenv , you can set a version in ~/.pyenv/version (global). Not recommended for teams.

When you cd into a directory with this file, managers like pyenv automatically switch your active Python version without you typing anything. Best Practices .python version

Your shell might cache the path to python . After changing .python-version , run hash -r (bash) or rehash (zsh/pyenv). For pyenv , you can set a version in ~/