title: urllib2.HTTPError: HTTP Error 403: SSL is required , even with pip upgraded and --index option used
body: <p>I've already read <a href="https://stackoverflow.com/questions/46962577/cannot-install-distribute-pypi-python-org-rejecting-http">Cannot install distribute: pypi.python.org rejecting http</a> and <a href="https://stackoverflow.com/questions/46967488/getting-error-403-while-installing-package-with-pip">Getting error 403 while installing package with pip</a> but the work around are not workig</p>
  
  <p>while trying to do </p>
  
  <p><code>pip install --upgrade pyls  --index-url=https://pypi.python.org/simple</code> I got :</p>
  
  <pre><code>Collecting pyls
    Using cached pyls-0.1.3.zip
      Complete output from command python setup.py egg_info:
      Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
      Traceback (most recent call last):
        File "&lt;string&gt;", line 1, in &lt;module&gt;
        File "/tmp/pip-build-PHBndM/pyls/setup.py", line 31, in &lt;module&gt;
          main()
        File "/tmp/pip-build-PHBndM/pyls/setup.py", line 11, in main
          distribute_setup.use_setuptools()
        File "setup_utils/distribute_setup.py", line 145, in use_setuptools
          return _do_download(version, download_base, to_dir, download_delay)
        File "setup_utils/distribute_setup.py", line 124, in _do_download
          to_dir, download_delay)
        File "setup_utils/distribute_setup.py", line 193, in download_setuptools
          src = urlopen(url)
        File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
          return opener.open(url, data, timeout)
        File "/usr/lib/python2.7/urllib2.py", line 435, in open
          response = meth(req, response)
        File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
          'http', request, response, code, msg, hdrs)
        File "/usr/lib/python2.7/urllib2.py", line 473, in error
          return self._call_chain(*args)
        File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
          result = func(*args)
        File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
          raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
      urllib2.HTTPError: HTTP Error 403: SSL is required
  ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hdpX4y/pyls/
  </code></pre>
  
  <p>my python version is 2.7, and my pip version is </p>
  
  <p><code>pip 9.0.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)</code></p>
  
  <p>to reproduce : </p>
  
  <p>spin this docker instance <code>https://hub.docker.com/r/allansimon/allan-docker-dev-python</code> and launch the command in it (with user <code>vagrant</code> ) </p>