Install pyenv
, but don't use shims and pyenv init
to prevent pyenv
from
intercepting common executables with its shim. e.g. if you have tox
installed
as a pex
standalone executable, but also in a pyenv
-managed virtual
environment, pyenv
will intercept a call to tox
.
Use the pyenv
installer with curl https://pyenv.run | bash
.
Remove any eval
of pyenv init
or pyenv virtualenv-init
that the installer
added to ~/.bash_profile
. Keep or add export PATH="$HOME/.pyenv/bin:$PATH"