[PYTHON] Resolved errors caused by pyenv install

A memo when I solved the error that appeared when I was breathing in 3.8.0.

problem

When I was having trouble with another problem, I got an error when I was trying to reinstall Python and pip to solve it.

% pyenv install 3.8.0                                                                                                                                                                       python-build: definition not found: 3.8.0

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

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

  brew update && brew upgrade pyenv

Can't find 3.8.0? Really?

solution

As I was told, I checked with pyenv install --list and it certainly wasn't there. However, it seems that the cause is that the version of pyenv itself is old. All you have to do is upgrade pyenv (with Homebrew update) according to the command provided.

brew update
brew upgrade pyenv

You can now pyenv install 3.8.0.

Recommended Posts

Resolved errors caused by pyenv install
Install pyenv on mac
Install pip, pyenv, BeautifulSoup4
Install pyenv and pyenv-virtualenv
Install python (pyenv, pyenv-virtualenv)
Install python with pyenv
Install pyenv on OSX
[CentOS7] Install anaconda using pyenv
When pyenv install BUILD FAILED
Install pyenv from Homebrew, install Python from pyenv