[英]How to update python3 on Mac homebrew
I am running python3 next to python on my mac (10.15.4).我在我的 mac (10.15.4) 上的 python 旁边运行 python3。 To be honest I don't exactly know how I installed that years ago.
老实说,我不完全知道几年前我是如何安装的。 My guess is homebrew.
我的猜测是自制的。 Now I want to update to the newest version.
现在我想更新到最新版本。 How do I do that?
我怎么做?
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).
As of this posting python3 is on version 3.8.2 which is where I want to upgrade to.截至本文发布时,python3 的版本为 3.8.2,这是我要升级到的版本。 How can this be achieved?
如何做到这一点?
This solved it for me:这为我解决了它:
% 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.