gpt4 book ai didi

python - Homebrew - `python@3` 和 `python3` 之间有什么区别?

转载 作者:行者123 更新时间:2023-12-01 09:06:52 33 4
gpt4 key购买 nike

我通过 homebrew 安装了 python 2.7.14,并且我也想通过 homebrew 安装最新版本的 python 3。当我搜索“python3”时,我看到以下结果。

$ brew search python3
==> Formulae
boost-python3 python3 python@3

If you meant "python3" specifically:
It was migrated from homebrew/cask to homebrew/core.

为什么同时存在python@3python3?有什么区别?

最佳答案

目前,homebrew-core 中只有两个不同的 Python 公式:python ,和 python@2 .

python@3python3 都是 Formula/python.rb 的别名。因此,它们只是安装相同软件包的不同名称。

查看两个别名:

...都指向:

<小时/>

要自行查找,请使用 brew info - 例如 brew info python@3 - 并查找 From:包含所使用公式的 URL 的行。例如,这一行可能如下所示:

From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb

关于python - Homebrew - `python@3` 和 `python3` 之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51971477/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com