title: How to set an HTTP proxy in Python 2.7?
body: <p>I am trying to run a script that installs pip: get-pip.py and am getting a connection timeout due to my network being behind an HTTP proxy. Is there some way I could configure an HTTP proxy in my Python 2.7 installation to be able to install what I am trying to install?</p>
  
  <p>Note: I am using Windows. Below is the error I am getting:</p>
  
  <pre><code>C:\SetupFiles&gt;python get-pip.py
  Downloading/unpacking pip
    Cannot fetch index base URL http://pypi.python.org/simple/
    Could not find any downloads that satisfy the requirement pip
  No distributions at all found for pip
  </code></pre>