如何更新 Python 3.x 新版本推出时 - 在 macOS 上推出

How-To Update Python 3.x When the New Version Rolled - Out on macOS

我在 macOS 上安装了 Python 3.6.5。 Python 新版本推出时如何更新?谢谢

你有最新版本的 python3

您可以使用 homebrew 来更新 python

安装 homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装python(如果没有安装)

brew install python3

最后,更新 python(这就是您要找的)

brew upgrade python3

这里解释得很好 - https://apple.stackexchange.com/questions/201612/keeping-python-3-up-to-date-on-a-mac