Managing Python on macOS Big Sur

$ brew install zlib sqlite bzip2 libiconv libzip
$ brew install pyenv
$ brew upgrade pyenv
$ pyenv install 3.9.1
$ pyenv global 3.9.1
$ pyenv version
$ echo -e $'if command -v pyenv 1>/dev/null 2>&1; then\\n  export PYENV_ROOT="$HOME/.pyenv"\\n  export PATH="$PYENV_ROOT/bin:$PATH"\\n  eval "$(pyenv init --path)"\\n  eval "$(pyenv init -)"\\nfi' >> ~/.zshrc
$ python --version
$ which python
Checking the version of Python and its part
$ pip install --upgrade pip
$ pip install --user ansible

Geek, Lover Of Shiny Things and Grump.