53

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)
blueFast
  • 41,341
  • 63
  • 198
  • 344
  • 5
    Did you try `pyenv update`? – amigcamel May 16 '17 at 06:39
  • 1
    @amigcamel 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? – blueFast May 16 '17 at 07:56
  • It's mentioned in [pyenv-installer](https://github.com/pyenv/pyenv-installer). See the answer below. – amigcamel May 16 '17 at 08:44
  • Same problem with python 3.7.1. I tried `brew upgrade pyenv` but I get: `Error: pyenv 1.2.7 already installed` – floatingpurr Oct 26 '18 at 10:52

2 Answers2

119

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
kimbaudi
  • 13,655
  • 9
  • 62
  • 74
amigcamel
  • 1,879
  • 1
  • 22
  • 36
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

gloc.mike
  • 344
  • 1
  • 9