title: How to use pip with socks proxy?
body: <p>I'm using <code>ssh -D</code> to create a socket proxy and want to know how to use <code>pip</code>(or <code>easy_install</code>) with it? I find <a href="https://stackoverflow.com/questions/14149422/using-pip-behind-a-proxy">this question</a> but that's an http proxy.</p>
  
  <p>Also, please give me a solution works under OS X. (I tried <a href="http://www.proxifier.com/mac/ver2.htm" rel="noreferrer">proxifier</a>, it works with <code>pip install</code>, but not <code>sudo pip install</code>)</p>