Homebrew does not upgrade pyenv

Viewed 2400

I'm trying to upgrade pyenv with homebrew for getting new Python releases.

Here is the problem:

$ brew upgrade pyenv
Error: pyenv 1.2.7 already installed

Is there a kind of update latency in homebrew package versioning? I am aware of the existence of other ways to install pyenv, but I'd like to use homebrew.

2 Answers

Verify which pyenv your system is using.

I thought I had this issue but then realized I had two different installs on my computer and my system was not actually using the brew installed pyenv --version.

Grepping my shell history, I saw that at some point I installed pyenv with curl using pyenv-installer for some reason. The command I found in my history was curl https://pyenv.run | bash. I followed the pyenv-installer directions to uninstall. Make sure to restart your shell once you uninstall!

I then reinstalled pyenv with brew. brew reinstall pyenv though I'm not sure if that's necessary.

I now see the newer versions of python available for install with pyenv install --list

Related