【发布时间】:2023-03-23 17:29:01
【问题描述】:
我已将我的 python 3 更新到最新版本 3.8:
brew search python
==> Formulae
app-engine-python gst-python python ✔ python@3.8 ✔
boost-python ipython python-markdown wxpython
boost-python3 micropython python-yq
==> Casks
awips-python kk7ds-python-runtime mysql-connector-python
但是当我在我的 mac 上查看 python3 版本时,它仍然显示 3.7:
python3 --version
Python 3.7.6
如何使用 Homebrew 将 python3 默认为最新的 3.8 版本?
编辑:
当我尝试使用 brew switch 时,它告诉我我只安装了 python 3.7.6,但最后一个 brew upgrade 我很确定 python3.8.1 是随 Homebrew 一起安装的
brew switch python 3.8.1
python does not have a version "3.8.1" in the Cellar.
python's installed versions: 3.7.6_1
【问题讨论】:
标签: python-3.x linux macos homebrew