title: How can I see what packages were installed using `sudo pip install`?
body: <p>I know that installing python packages using <code>sudo pip install</code> is bad a security risk. Unfortunately, I found this out after installing quite a few packages using <code>sudo</code>. </p>
  
  <p>Is there a way to find out what python packages I installed using <code>sudo pip install</code>? The end goal being uninstallment and correctly re-installing them within a virtual environment.</p>
  
  <p>I tried <code>pip list</code> to get information about the packages, but it only gave me their version. <code>pip show &lt;package name&gt;</code> gave me more information about an individual package such as where it is installed, but I don't know how to make use of that information.  </p>