title: ImportError: No module named typing
body: <p>I'm trying to create a <a href="https://gist.github.com/simonw/4835a22c79a8d3c29dd155c716b19e16" rel="nofollow noreferrer">python2 virtualenv</a>, so I try <code>pip install virtualenv</code> and get</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/usr/local/bin/pip&quot;, line 11, in &lt;module&gt;
      load_entry_point('pip==21.1.1', 'console_scripts', 'pip')()
    File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py&quot;, line 489, in load_entry_point
      return get_distribution(dist).load_entry_point(group, name)
    File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py&quot;, line 2843, in load_entry_point
      return ep.load()
    File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py&quot;, line 2434, in load
      return self.resolve()
    File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py&quot;, line 2440, in resolve
      module = __import__(self.module_name, fromlist=['__name__'], level=0)
    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 get an almost identical error with <code>pip install typing</code></p>
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Traceback (most recent call last):
    File "/usr/local/bin/pip", line 11, in &lt;module&gt;
      load_entry_point('pip==21.1.1', 'console_scripts', 'pip')()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 489, in load_entry_point
      return get_distribution(dist).load_entry_point(group, name)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2843, in load_entry_point
      return ep.load()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2434, in load
      return self.resolve()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 2440, in resolve
      module = __import__(self.module_name, fromlist=['__name__'], level=0)
    File "/Library/Python/2.7/site-packages/pip-21.1.1-py2.7.egg/pip/__init__.py", line 1, in &lt;module&gt;
      from typing import List, Optional
  ImportError: No module named typing</code></pre>
  </div>
  </div>
  </p>
  <p>A lot of solutions suggest using python3 but I'm specifically trying to create a python 2 virtual environment</p>
  <hr />
  <p>I'm running MacOS Big Sur on a 2018 Intel i3 Mac Mini</p>