Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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               [email protected]
boost-python              python-markdown           reorder-python-imports
boost-python3             python-yq                 wxpython
gst-python                [email protected]
ipython                   [email protected] ✔
==> Casks
awips-python              kk7ds-python-runtime      mysql-connector-python

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

like image 414
Shivani Patel Avatar asked Oct 22 '25 14:10

Shivani Patel


2 Answers

You can download the last release of python 2 here but notice that python2 is already in End Of Life state and no longer supported.

like image 96
n0nvme Avatar answered Oct 25 '25 05:10

n0nvme


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

like image 40
BeeFriedman Avatar answered Oct 25 '25 04:10

BeeFriedman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!