自制-python @ 3和python3有什么区别? [英] Homebrew - What's the difference between `python@3` and `python3`?
问题描述
我通过自制软件安装了python 2.7.14,我也想通过自制软件安装最新版本的python 3.当我搜索"python3"时,我看到以下结果.
I have python 2.7.14 installed via homebrew, and I'd like to install the latest version of python 3 via homebrew as well. When I search for "python3" I see the following results.
$ brew search python3
==> Formulae
boost-python3 python3 python@3
If you meant "python3" specifically:
It was migrated from homebrew/cask to homebrew/core.
为什么同时存在python@3
和python3
?有什么区别?
Why is there both python@3
and python3
? What's the difference?
推荐答案
目前,homebrew-core中只有两个不同的Python公式: python@2
.
Right now, there are only two distinct Formula for Python in homebrew-core: python
, and python@2
.
python@3
和python3
都是Formula/python.rb
的别名.因此,它们只是安装相同软件包的不同名称.
python@3
and python3
are both aliases to Formula/python.rb
. Thus, they're just different names that install the same package.
请参阅两个别名:
...都指向:
要自行查找,请使用brew info
(例如brew info python@3
),然后在From:
行中找到所用公式的URL.例如,此行可能看起来像:
To find this yourself, use brew info
-- for example, brew info python@3
-- and look for the From:
line with a URL to the formula which was used. For example, this line might look like:
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb
这篇关于自制-python @ 3和python3有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!