> For the complete documentation index, see [llms.txt](https://mac-python.gitbook.io/python-mac/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mac-python.gitbook.io/python-mac/option-2-pyenv-it.md).

# Option 2: Pyenv it!

[Pyenv](https://github.com/yyuu/pyenv) is a simple Python version manager that can manage and install different versions of Python. But STOP!!

Did you get homebrew yet? Pynev is installed using homebrew. So first, we must install pyenv using homebrew:

```
$ brew install pyenv
```

Also remember, to upgrade pyenv in the future, use `upgrade` instead of `install`. After installing, add `pyenv init` to your shell to enable shims and autocompletion.

```
$ echo 'eval "$(pyenv init -)"' >> ~/Projects/config/env.sh
```

Restart your shell so the path changes take effect. You can now begin using pyenv.

```
$ exec $SHELL
```
