title: How to install Python 2 on macOS 12.3+
body: <p>macOS 12.3 update drops Python 2 and replaces it with version 3:</p>
  <p><a href="https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes" rel="noreferrer">https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes</a></p>
  <blockquote>
  <p>Python
  Deprecations
  Python 2.7 was removed from macOS in this update. Developers should use Python 3 or an alternative language instead. (39795874)</p>
  </blockquote>
  <p>I understand we need to migrate to version 3, but in the meantime we still need version 2. Homebrew does not seem to have it anymore:</p>
  <pre class="lang-none prettyprint-override"><code>brew install python@2.7
  Warning: No available formula with the name &quot;python@2.7&quot;. Did you mean python@3.7, python@3.9, python@3.8, python@3.10 or python-yq?
  
  brew install python2
  Warning: No available formula with the name &quot;python2&quot;. Did you mean ipython, bpython, jython or cython?
  </code></pre>
  <p>What gives?</p>