title: Installing a Module on Heroku
body: <p>I'm deploying something that has been running on my local and realized when I deployed that the module I was using wasn't installed on Heroku, thus I was getting an error like this:</p>
  
  <pre><code>...
      from PIL import Image
  ImportError: No module named PIL
  </code></pre>
  
  <p>I've tried:</p>
  
  <pre><code>heroku run pip install PIL
  </code></pre>
  
  <p>but I'm getting this:</p>
  
  <pre><code>ImportError: No module named setuptools.command
  </code></pre>
  
  <hr>
  
  <p>edit</p>
  
  <p>So, I went to the <a href="http://devcenter.heroku.com/articles/django" rel="nofollow">heroku setup</a> and mimicked the steps to install django and postgres.  Essentially, I activated the environment and then ran </p>
  
  <pre><code>pip install PIL
  </code></pre>
  
  <p>This seemed to be doing the trick, I got a lot of readout and then it ended with a confirmation that PIL had been installed.  But then again, it said it couldn't find PIL when I ran the new file.</p>