Aaron Presley

Installing Python 2 via Homebrew Despite Deprecation April 22, 2020

I recently borked my Python 2 installation on Mac OS Mojave. I couldn't reinstall because brew removed python@2. Or did they?!

I found this post that allows you to reinstall like so:

curl https://raw.githubusercontent.com/Homebrew/homebrew-core/94d572a132a63651739fef1931f540404b7eaa31/Formula/python%402.rb > python@2.rb && brew install python@2.rb

After running that command I was able to reinstall python@2 via Homebrew.