title: Why would pip install python packages outside of my current virtualenv?
body: <p>I just installed virtualenv earlier today, and I've been trying to get django-nonrel to work using a virtual environment. After many hours of trying and failing to do so, I chatted with someone who suggested that the problem is with pip itself.</p>
  
  <p>I create a virtual environment with <code>virtualenv env_name</code>. I enter it with: </p>
  
  <pre><code>source env_name/bin/activate
  </code></pre>
  
  <p>I then install something with pip. For example,</p>
  
  <pre><code>sudo pip install git+https://github.com/django-nonrel/django-nonrel;
  </code></pre>
  
  <p>I then perform a <code>pip freeze</code>, and the only output is:</p>
  
  <pre><code>wsgiref=0.1.2
  </code></pre>
  
  <p>Can anyone see why this might happen?</p>
  
  <p>Thanks,</p>
  
  <p>ParagonRG</p>
  
  <p>Notes:</p>
  
  <ul>
  <li><p>pip is version 1.1.</p></li>
  <li><p>virtualenv is version 1..7.1.2</p></li>
  </ul>