-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Description
I noticed pyenv no longer works after upgrading to macOS 11.4. Immediately after the successful upgrade, I opened up iTerm and saw this message:
WARNING: pyenv init -no longer sets PATH. Runpyenv init to see the necessary changes to make to your configuration.
I then ran the pyenv init command and followed the instructions. I added the following commands in both ~./profile and ~./zprofile
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
Restarted my session by terminating iTerm2. The warning message is gone. But pyenv does not seem to switch to the version I set which is 3.9.5.
OS: macOS 11.4
Shell: zsh 5.8 (x86_64-apple-darwin20.1.0)
Pyenv version: 2.0 (updated on Monday via Homebrew)
