pyenv install -l does not show the version I need to install
Asked Answered
I

3

7

For a project I need Python version 3.6.8 and I used pyenv install -l to list all the version available to install but could not find it. After I tried several times including: use brew upgrade pyenv, tried uninstall pyenv, tried brew update brew upgrade and then update pyenv, still no luck to find the version I need. Any suggestion? Thanks.

Innings answered 2/1, 2020 at 22:26 Comment(1)
Answer by OP below, pyenv update worked for me (2024)Gine
B
5

I have tried multiple things after going from one SO page to another. The only thing that worked for me was upgrading pyenv. However, pyenv update did not resolve the issue as I installed pyenv on my Mac via Homebrew, so I had to upgrade it via brew:

brew upgrade pyenv

So I think the answer is: you have to upgrade pyenv but, how you have to upgrade it depends on how you installed it.

If you installed it via https://github.com/pyenv/pyenv-installer then yes - pyenv update is going to work for you

Burglarious answered 5/11, 2022 at 13:34 Comment(1)
Thanks, that helped me. I installedp pyenv by cloning the git repository, so I had to do this to update: cd ~/.pyenv & git pullHornbeam
I
2

After many searches, found answer here: Why is python 3.6.1. not available in pyenv? pyenv update did the trick.

Innings answered 3/1, 2020 at 2:53 Comment(0)
T
1

See all available versions with `pyenv install --list'.

If the version you need is missing, try upgrading pyenv:

cd ~/.pyenv/plugins/python-build/../.. && git pull && cd -

Tellez answered 8/9, 2021 at 6:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.