How to upgrade version of pyenv on Ubuntu
Asked Answered
Z

2

21

I wanted to install python 3.10 but that version is not available on pyenv version list. checked by pyenv install --list. People suggested to upgrade pyenv that but I do not see help related to updating pyenv.

Zinn answered 1/4, 2022 at 8:8 Comment(0)
R
39

pyenv isn't really 'installed' in a traditional sense, it's just a git checkout. All you have to do to update is

cd ~/.pyenv
git pull

That also updates the list of available python versions.

Romansh answered 1/4, 2022 at 8:21 Comment(1)
One has to be on their master branch for this to workSurly
B
6

Received the not a git repository error and found out I have installed pyenv through Homebrew. This means you have to run: brew upgrade pyenv

Another option is you have installed it with pyenv installer, then you should run pyenv update. See full pyenv docs.

Bumbledom answered 26/10, 2023 at 13:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.