title: How to uninstall all unused packages in a conda virtual environment?
body: <p>I have a conda virtual environment with several unused packages installed inside it (either using <code>pip install</code> or <code>conda install</code>).</p>
  
  <p>What is the easiest way to clean it up so that only packages that are actually used by my code remain, and the others are uninstalled?</p>