Installing/Updating Python

Reading Time: < 1 minute
brew upgrade && brew update
brew install pyenv
pyenv install 3.8.5
pyenv global 3.8.5

Add this to your ~/.zshrc file

if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"

source ~/.zshrc

Check your install

# Python 3.8.5
python -V

# .../.pyenv/shims/python
which python

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.