title: Why is pip trying to reach pypi.python.org when pip.conf specifies elsewhere?
body: <p>My org uses artifactory, an on-premises package repository manager. Artifactory provides a feature called Remote Repositories which provides proxying and caching capabilities for remote repositories, we use this for proxying and caching access to PyPi (see <a href="https://www.jfrog.com/confluence/display/RTF/PyPI+Repositories" rel="nofollow noreferrer">PyPi Repositories</a> for more details).</p>
  
  <p>In order to use this remote repository one has to add an entry to pip.conf. I have done this on a box onto which I need to install some machines however when I issue a pip command (in my case its <code>sudo -E pip install --ignore-installed pip setuptools wheel</code>) pip appears to be ignoring what's in pip.conf and instead is trying to get to <a href="https://pypi.python.org" rel="nofollow noreferrer">https://pypi.python.org</a>.</p>
  
  <p>Here is a transcript of what I have just run:</p>
  
  <pre><code>$ cat /etc/pip.conf  
  [global]  
  index-url = https://username:password@artifactory.myorg.com/artifactory/api/pypi/pypi-remote/simple  
  
  $ sudo -E pip
  install --ignore-installed pip setuptools wheel  
  Downloading/unpacking pip  
    Cannot fetch index base URL https://pypi.python.org/simple/   
    Could not find any downloads that satisfy the requirement pip  
  Cleaning up...  
  No distributions at all found for pip  
  Storing debug log for failure in /home/jamiet/.pip/pip.log  
  
  $ cat /home/jamiet/.pip/pip.log   
  Downloading/unpacking pip   
     Getting page https://pypi.python.org/simple/pip/
     Could not fetch URL https://pypi.python.org/simple/pip/: connection error: ('Connection aborted.', error(101, 'Network is unreachable'))
    Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip  
     Getting page https://pypi.python.org/simple/   Could not
  fetch URL https://pypi.python.org/simple/: connection error:
  ('Connection aborted.', error(101, 'Network is unreachable'))
    Will skip URL https://pypi.python.org/simple/ when looking for download
  links for pip
    Cannot fetch index base URL https://pypi.python.org/simple/  
    URLs to search for versions for pip:
  * https://pypi.python.org/simple/pip/  
    Getting page https://pypi.python.org/simple/pip/  
    Could not fetch URL https://pypi.python.org/simple/pip/: connection error: ('Connection
  aborted.', error(101, 'Network is unreachable'))  
    Will skip URL https://pypi.python.org/simple/pip/ when looking for download link for pip  
    Could not find any downloads that satisfy the requirement pip  
  Cleaning up... No distributions at all found for pip  
  </code></pre>
  
  <p>Can anyone explain to me why pip is attempting to reach <a href="https://pypi.python.org/simple/pip/" rel="nofollow noreferrer">https://pypi.python.org/simple/pip/</a> when pip.conf is instructing it to go somewhere different?</p>