For the wrong reason I updated my pyenv, by running pyenv update
, after this every time when I open a new console I got this error
WARNING: `pyenv init -` no longer sets PATH.
Run `pyenv init` to see the necessary changes to make to your configuration.
I have tried with adding this into my .zshrc:
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init --path)"
fi
That was recommended in other posts and questions but in that case, I got another error message:
Failed to initialize virtualenvwrapper.
Perhaps pyenv-virtualenvwrapper has not been loaded into your shell properly.
Please restart current shell and try again.
further info:
System: MacOS Catalina 10.15.7 Pyenv version 2.0.2
Thanks guys