title: How to remove pip package after deleting it manually
body: <p>I deleted a pip package with <code>rm -rf</code> command thinking that the package will be removed. Now the package has been deleted but it still shows up in <code>pip list</code> and I'm unable to remove it with <code>pip uninstall</code> nor can I update with <code>pip install --upgrade</code>. </p>
  
  <p>I'd like to remove it completely. Can anyone please tell me how?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>The package is psycopg2.</p>
  
  <p>If I try to uninstall :</p>
  
  <pre><code>hammad@hammad-P5QL-E:~$ pip uninstall psycopg2
  Can't uninstall 'psycopg2'. No files were found to uninstall.
  </code></pre>
  
  <p>This is the directory in which psycopg2 was located <code>/usr/lib/python2.7/dist-packages</code>and I <code>rm -rf</code> 'd it from the same directory.</p>
  
  <p>TIA</p>