简体   繁体   中英

Cannot install python2 using brew install python@2

I am trying to install python2 using:

brew install python@2

These are the results I get:

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.

According to my research, python2 was removed from brew. I also ran:

brew search python

I got the following results:

==> 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

My question is: Is there another good way to download python2?

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

You could just download it from the website and use the GUI installer. https://www.python.org/downloads/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM