title: Permission denied with trying to use pip on MAC?
body: <pre><code>Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/beautifulsoup4-4.6.0.dist-info'Consider using the `--user` option or check the permissions.
  </code></pre>
  
  <p>The error above is the one I get when I try to use the pip command. All I need to do is pip install the requirements.txt to get my program to work.  I have python 2.7.1 installed and placed my code where I am able to use python commands. I tried to change permissions by using this command:</p>
  
  <pre><code>chmod -R 777
  </code></pre>
  
  <p>but it did not work. I have homebrew installed on my computer. I also tried to use a virtual environment using this link:
  <a href="http://sourabhbajaj.com/mac-setup/Python/virtualenv.html" rel="noreferrer">http://sourabhbajaj.com/mac-setup/Python/virtualenv.html</a> but it gave me permission issues as well. Is there any suggestions to get rid of this permissions issue and run pip successfully? The sudo command below also doesn't work.</p>
  
  <pre><code>sudo pip install -r requirements.txt
  </code></pre>