title: pip, how to remove dead index base url
body: <p>When i try to install a package using pip it first tries to fetch from a url which no longer exists which leads to the following error</p>
  
  <pre><code>Cannot fetch index base URL http://xyz.xxx:8080/simple/
  </code></pre>
  
  <p>but it goes on to download and install the package from pypi.I want to get rid of this index base url, i don't want to see this message every time.I don't remember how i added this url but it was a valid private package index at some point.I've already gotten rid of the url from the /etc/hosts file but pip still tries to fetch packages from that location.</p>