diff --git a/modules/python/init.zsh b/modules/python/init.zsh index da78ea79..1ed72092 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -29,6 +29,11 @@ else fi fi +# Load package manager installed pyenv-virtualenv into the shell session. +if (( $+commands[pyenv-virtualenv-init] )); then + eval "$(pyenv virtualenv-init -)" +fi + # Return if requirements are not found. if (( ! $+commands[python] && ! $+commands[pyenv] )); then return 1