Upgrade Python: Mac Os

echo 'eval "$(pyenv init --path)"' >> ~/.zprofile echo 'eval "$(pyenv init -)"' >> ~/.zshrc source ~/.zprofile source ~/.zshrc

python --version

Open the downloaded .pkg file and follow the guided prompts. mac os upgrade python

echo 'eval "$(pyenv init -)"' >> ~/.zshrc source ~/.zshrc echo 'eval "$(pyenv init --path)"' >> ~/

python3 -m pip install --upgrade pip

Homebrew is the most popular package manager for macOS, making it easy to keep Python updated with a single command. Open the Terminal application and run: brew update brew upgrade python Use code with caution. If you don’t have it yet, you can install Homebrew first. echo 'eval "$(pyenv init --path)"' &gt