title: Pip not working behind firewall
body: <p>I am trying to use pip from behind a corporate firewall, and not having any luck.</p>
  
  <p>I have set the <code>http_proxy</code> and <code>https_proxy</code> environment variables. wget works, but not pip.</p>
  
  <p>I tried this ...</p>
  
  <pre><code>sudo -E pip install virtualenv
  </code></pre>
  
  <p>with these proxies ...</p>
  
  <pre><code>export http_proxy=myproxyname.mydomain.com:8080
  export https_proxy=myproxyname.mydomain.com:8080 
  </code></pre>
  
  <p>... and got a long stacktrace which ended with this</p>
  
  <pre><code>/requests/packages/urllib3/poolmanager.py", line 214, in __init__
  'Not supported proxy scheme %s' % self.proxy.scheme
  AssertionError: Not supported proxy scheme None
  </code></pre>
  
  <p>I looked at the poolmanager.py source. It looks like it is requiring the proxy variables to begin with a scheme. So I tried again with the following proxies ...</p>
  
  <pre><code>export http_proxy=http://myproxyname.mydomain.com:8080
  export https_proxy=https://myproxyname.mydomain.com:8080 (also tried this with http://)
  </code></pre>
  
  <p>... and I get the following error</p>
  
  <pre><code>Downloading/unpacking virtualenv
    Cannot fetch index base URL https://pypi.python.org/simple/
    Could not find any downloads that satisfy the requirement virtualenv
  Cleaning up...
  No distributions at all found for virtualenv
  Storing debug log for failure in /root/.pip/pip.log
  </code></pre>
  
  <p>This is the same error I get when I do not have a proxy at all, though I get it much faster when the proxies are set.</p>
  
  <p>When I try wget ... </p>
  
  <pre><code>wget --no-check-certificate https://pypi.python.org/simple/
  </code></pre>
  
  <p>It works fine, so I think the proxies themselves seem ok, unless I try them with pip.</p>
  
  <p>Using the <code>--proxy</code> option instead of envvars did not help. Same results.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks,
  Bean</p>