dwyl/learn-devops

pyenv: No such file or directory

nelsonic opened this issue · 1 comments

After running brew upgrade elixir to get the latest version,
I'm seeing the following error when attempting to open VSCodium from iTerm:

code .
/Users/n/.pyenv/shims/python: line 21: /usr/local/Cellar/pyenv/1.2.21/libexec/pyenv: No such file or directory
/usr/local/bin/code: line 10: ./MacOS/Electron: No such file or directory

Fix is to run:

pyenv rehash

Thanks to: pyenv/pyenv#1716 (comment)