title: How do I list my pip-installed packages inside a venv?
body: <p>I have successfully activated a virtual environment and installed packages there, but when I try to list those packages with <code>pip list</code> I get the list of global packages, not those in the activated venv.</p>
  
  <pre><code>$ source ./venv/bin/activate
  [venv] pip list
  # ... global 2.7 packages are listed
  [venv] pip3 list
  # ... global 3 packages are listed
  </code></pre>
  
  <p>but</p>
  
  <pre><code>$ cd venv/lib/pythonXX/site-packages
  $ ls
  # ...venv's installed packages are listed
  </code></pre>
  
  <p>even though <code>python -version</code> correctly lists the venv's Python (and not any global version).</p>
  
  <p>How do I list my pip-installed packages inside a venv?</p>