title: How do I install the pip package for python on mac osx?
body: <p>I'm currently stuck on exercise 46 in Zed Shaw's "Learn Python the Hardway". He says I need to install the following python packages: </p>
  
  <ol>
  <li><a href="http://pypi.python.org/pypi/pip" rel="nofollow">pip</a></li>
  <li><a href="http://pypi.python.org/pypi/distribute" rel="nofollow">distribute</a></li>
  <li><a href="http://pypi.python.org/pypi/nose" rel="nofollow">nose</a></li>
  <li><a href="http://pypi.python.org/pypi/virtualenv" rel="nofollow">virtualenv</a></li>
  </ol>
  
  <p>He doesn't give the reader any directions on how to properly install the packages and use them. I went to the pip website but the directions were also very vague and kind of unhelpful for a newbie. The installation guide found on <a href="https://pip.pypa.io/en/latest/installing.html" rel="nofollow">https://pip.pypa.io/en/latest/installing.html</a> says to download the <code>get-pip.py</code> file and then run it by typing <code>python get-pip.py</code> in what I presume to be terminal. </p>
  
  <p>When I do that it starts downloading, then says <code>cleaning up..</code> and then a red error message appears that says: </p>
  
  <pre><code>Exception:
  Traceback (most recent call last):" 
  
  followed by a bunch of file names before ending with 
  
  "OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip
  </code></pre>
  
  <p>Does anyone know how to correct this? If it helps, the <code>get-pip.py</code> file is in my downloads folder, so I did <code>cd Downloads</code> before running <code>python get-pip.py"</code></p>