You are not logged in.

#1 2024-05-06 12:29:27

keks
Member
Registered: 2007-07-11
Posts: 45

pyenv: shell prompt problems

Hi,
to manage python versions I'm trying to set up pyenv.

$ pyenv --version
pyenv 2.4.0

However, as soon as I install any version like

$ pyenv install 3.12
Downloading Python-3.12.2.tar.xz...
-> https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tar.xz
Installing Python-3.12.2...
Installed Python-3.12.2 to /home/mfischer/.pyenv/versions/3.12.2

my zsh shell prompt begins to hang afterwards. I can still get to a prompt by pressing CTRL+C.

In my .zshrc i have

# For pyenv
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"

# Starship prompt
eval "$(starship init zsh)"

Setting export PYENV_DEBUG=1 does imo not show any errors.
Removing

eval "$(pyenv init --path)"

or

eval "$(starship init zsh)"

in this state does not seem to change anything. Only removing the just installed version in ~/.pyenv/versions/ does resolve it.

Offline

Board footer

Powered by FluxBB