title: How to install pip2 on your Mac in 2021?
body: <p>I have a legacy project that I wanna use. It uses python2. I want to install python2 on my Mac, but it gives me a really hard time.</p>
  <p>My python2 version is <code>Python 2.7.16</code>. I cannot start pip</p>
  <pre><code>&gt; python -m pip
  &gt; Traceback (most recent call last):
    File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py&quot;, line 163, in _run_module_as_main
      mod_name, _Error)
    File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py&quot;, line 111, in _get_module_details
      __import__(mod_name)  # Do not catch exceptions initializing package
    File &quot;/Library/Python/2.7/site-packages/pip-21.1.1-py2.7.egg/pip/__init__.py&quot;, line 1, in &lt;module&gt;
      from typing import List, Optional
  ImportError: No module named typing
  </code></pre>
  <p>I cannot install <code>typing</code> with pip obviously. Installing it with <code>pip3</code> does not help (isn't it build-in anyways?)</p>
  <p>I am unable to install python2 with brew. Everything I found so far told me to update to python3, which is not helpful.</p>