title: Shell script to set up virtualenv and pip
body: <p>I'm writing a shell script to set up my virtual env environment and install all related python packages via pip.</p>
  
  <pre><code>virtualenv -q -p /usr/bin/python3.5 $1
  /bin/bash $1/bin/activate
  pip install -r requirements.txt
  </code></pre>
  
  <p>$1 is the name of the virtualenv.
  The problem I have is that the pip command does not work in my virtualenv but is executed globally instead. </p>