Your shell might cache the path to python . After changing .python-version , run hash -r (bash) or rehash (zsh/pyenv).
asdf plugin add python asdf install python 3.11.5 asdf local python 3.11.5 # Creates .python-version .python version