title: How to install packages using pip in jenkins
body: <p>I have created a job in jenkins and trying to build my project. </p>
  
  <p>My shell command:</p>
  
  <pre><code>#!/bin/bash
  source env/bin/activate
  cd PetInstantApi
  pip install -r requirements.txt
  python manage.py migrate
  python manage.py test
  </code></pre>
  
  <p>My console output says it's failed when installing packages in requirements file. </p>
  
  <pre><code>  OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Django-1.8.dist-info'
  </code></pre>
  
  <p>i have tried using </p>
  
  <pre><code>sudo     pip install -r requirements.txt
  </code></pre>
  
  <p>but no luck.</p>