Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install python@2 on a Mac after python 2 support has ended on Homebrew [duplicate]

I would like to install a few packages from a github project and one of the dependencies is python@2.

Prior to Jan 1 2020, it was possible to install python@2 using Homebrew:

$ brew install python@2

However, Python 2 support has ended from Homebrew. Is there anyway to install python@2 on a Mac now that Python 2 support has ended?

Until the code in this project is ported to Python 3, unfortunately I'm stuck with getting it to work with Python 2 (and dependencies which use Python 2), which is the reason I would like to install python@2 as a temporary solution.

like image 745
NM_ Avatar asked Apr 27 '26 03:04

NM_


1 Answers

I was able to find the exact same question -- Brew - reinstalling python@2. Unfortunately I can't raise the duplicate flag again so I'll duplicate the answer:

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/86a44a0a552c673a05f11018459c9f5faae3becc/Formula/[email protected]
like image 122
Pavel Vergeev Avatar answered Apr 29 '26 16:04

Pavel Vergeev



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!