I set up Zsh (with OhMyZsh) within Windows Terminal app 8 months ago, and used it many times to develop Python apps.
A couple months ago, I started getting the following error message when opening the terminal:
# Load pyenv automatically by appending
# the following to your profile:
eval "$(pyenv init -)"
# Load pyenv automatically by appending
# the following to your profile:
eval "$(pyenv init -)"
Found pyenv, but it is badly configured (missing pyenv shims in $PATH). pyenv might not
work correctly for non-interactive shells (for example, when run from a script).
To fix this message, add these lines to the '.profile' and '.zprofile' files
in your home directory:
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
You'll need to restart your user session for the changes to take effect.
For more information go to https://github.com/pyenv/pyenv/#installation.
I have tried including the line eval "$(pyenv init -)
in the end of my .profile file, and also included export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)
in the end of both the .profile and .zprofile files, as suggested by the error message.
However, the message keeps appearing. I haven't seen any implication yet - I can still open jupyter notebooks and work on them, still, I wanted to solve this.
Any ideas?
Thanks!