Why is python 3.6.1. not available in pyenv?
Asked Answered
P

3

57

According to python.org, Python 3.6.1 was released at the end of March. But:

» pyenv install -l | grep 3\.6\.
  3.6.0a1
  3.6.0a3
  3.6-dev
  1. Why is Python 3.6.1 not yet available in pyenv?
  2. Where can I find documentation about the releases that pyenv supports? (when it was added, what is in progress, ...). The pyenv documentation does not give this information.
  3. Is there a repository for Python releases supported by pyenv? (similar to PyPi)
Pyrophoric answered 16/5, 2017 at 6:13 Comment(4)
Did you try pyenv update?Virge
@Virge omg! That did the trick, now I have 3.6.0 and 3.6.1. That update command does not even appear en pyenv --help, and there is no man pyenv. I do not find it in pyenv documentation. Where did you find this?Pyrophoric
It's mentioned in pyenv-installer. See the answer below.Virge
Same problem with python 3.7.1. I tried brew upgrade pyenv but I get: Error: pyenv 1.2.7 already installedAdao
V
127

If you installed pyenv via pyenv installer:

pyenv update

If you installed pyenv via Homebrew

brew upgrade pyenv

If you installed pyenv via Git:

cd $(pyenv root) && git pull
Virge answered 16/5, 2017 at 8:34 Comment(0)
T
11

I tried pyenv update but that did not resolve the issue for me.

I had to brew update && brew upgrade pyenv before doing pyenv install 3.6.1

Thorne answered 30/5, 2017 at 2:52 Comment(0)
T
0

Thx @amigcamel for the full answer. I installed via Git so I didn't have pyenv update but I didn't want to remember the Git method so I made this with the help of Copilot and put it in my profile. So now I have pyenv update. 😀

pyenv() {
    local pyenv_bin="/home/aquar/.pyenv/bin/pyenv"
    local first_arg="$1"

    # Check if the first argument is "update"
    if [ "$first_arg" = "update" ]; then
        # Execute the update commands
        pushd "$(pyenv root)" && git pull && popd
    else
        # Pass all arguments to the original pyenv binary
        "$pyenv_bin" "$@"
    fi
}
Tyro answered 16/2 at 20:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.