Skip to content

Pyenv 2.0 stops working after an upgrade to macOS Big Sur 11.4 #1948

@edbergavera

Description

@edbergavera

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.

Screen Shot 2021-05-26 at 9 37 31 AM

OS: macOS 11.4
Shell: zsh 5.8 (x86_64-apple-darwin20.1.0)
Pyenv version: 2.0 (updated on Monday via Homebrew)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions