title: Accidentally ran pip install -r requirements.txt outside virtual environment
body: <p>I foolishly ran:</p>
  <p><code>python3 -m pip install -r requirements.txt</code></p>
  <p>outside the intended virtual environment.  Now my global environment has everything in <code>requirements.txt</code></p>
  <p>Is there a straightforward way to undo this?  This issue was raised <a href="https://stackoverflow.com/questions/70522336/accidentally-ran-requirements-txt-outside-venv">here</a>, but no real answer was provided as to how to reverse this.</p>