Closed MonkeyInWind closed 3 years ago
i also find the issue, i can't slove it.
I had that too and it is related to zsh's behaviour. You need to rehash
after you activate a virtual environment in zsh. See https://github.com/pyenv/pyenv/issues/31#issuecomment-20947029
If you want to rehash automatically in zsh, either use zstyle ':completion:*' rehash true
in your .zshrc
(see https://github.com/ohmyzsh/ohmyzsh/issues/3440) or include a shell function for pyenv in your zshrc that passes all arguments to pyenv and afterwards calls rehash (see top answer in https://stackoverflow.com/questions/34340575/zsh-alias-with-parameter).
I had that too and it is related to zsh's behaviour. You need to
rehash
after you activate a virtual environment in zsh. See pyenv/pyenv#31 (comment)If you want to rehash automatically in zsh, either use
zstyle ':completion:*' rehash true
in your.zshrc
(see ohmyzsh/ohmyzsh#3440) or include a shell function for pyenv in your zshrc that passes all arguments to pyenv and afterwards calls rehash (see top answer in https://stackoverflow.com/questions/34340575/zsh-alias-with-parameter).
Thanks
.zshrc