【问题标题】:Cannot install python2 using brew install python@2无法使用 brew install python@2 安装 python2
【发布时间】:2021-01-27 05:33:05
【问题描述】:

我正在尝试使用以下方式安装 python2:

brew install python@2

这些是我得到的结果:

Error: No available formula or cask with the name "pip2".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

根据我的研究,python2 已从 brew 中删除。我也跑了:

brew search python

我得到了以下结果:

==> Formulae
app-engine-python         micropython               python@3.9
boost-python              python-markdown           reorder-python-imports
boost-python3             python-yq                 wxpython
gst-python                python@3.7
ipython                   python@3.8 ✔
==> Casks
awips-python              kk7ds-python-runtime      mysql-connector-python

我的问题是: 有没有其他下载python2的好方法?

【问题讨论】:

  • 你不应该安装 Python2。使用 Python3。
  • 这能回答你的问题吗? Brew - reinstalling python@2
  • 还有其他下载python2的好方法吗?你有研究过吗?

标签: python homebrew python-2.x


【解决方案1】:

您可以下载最新版本的 python 2 here,但请注意,python2 已经处于生命周期结束状态并且不再受支持

【讨论】:

    【解决方案2】:

    您可以从网站下载它并使用 GUI 安装程序。 https://www.python.org/downloads/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-02-25
      • 2014-09-28
      • 2015-02-06
      • 1970-01-01
      • 2023-02-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多