【问题标题】:How to update python3 on Mac homebrew如何在 Mac 自制软件上更新 python3
【发布时间】:2023-04-01 21:16:01
【问题描述】:

我在我的 mac (10.15.4) 上的 python 旁边运行 python3。老实说,我不完全知道几年前我是如何安装的。我的猜测是自制的。现在我想更新到最新版本。我该怎么做?

user@192-143-0-9 ~ % python --version
Python 2.7.16
user@192-143-0-9 ~ % python3 --version
Python 3.7.1
user@192-143-0-9 ~ % brew update
error: gc died of signal 9
Fast-forwarded master to origin/master.
Updated 1 tap (homebrew/core).

截至本文发布时,python3 的版本为 3.8.2,这是我要升级到的版本。如何实现?

【问题讨论】:

标签: python macos homebrew


【解决方案1】:

这为我解决了:

% brew upgrade python3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
phpunit

==> Upgrading 1 outdated package:
python3 3.7.1 -> 3.7.7
...
% python3 -V
Python 3.7.7

【讨论】:

    猜你喜欢
    • 2013-12-29
    • 1970-01-01
    • 2021-02-25
    • 2013-10-14
    • 2021-05-05
    • 1970-01-01
    • 2022-08-17
    • 1970-01-01
    • 2013-03-28
    相关资源
    最近更新 更多