title: Specifying a repo for a specific package in pip
body: <p>I have a privately hosted package that has a name conflict with a public package found on PyPi. Unfortunately, because the public version is higher than my private package, a simple <code>pip install &lt;package_x&gt;</code> command finds the public version instead of my privately hosted package.</p>
  
  <p>In effect:</p>
  
  <pre><code>PyPi (public) hosts package_x==1.5.0
  PrivateRepo (private) hosts package_x==1.3.0
  </code></pre>
  
  <p>I would like <code>pip install package_x</code> to install the private version 1.3.0 without requiring me to specify the version or the index within the pip install command (purely through a configuration file.)</p>
  
  <p>I'm trying to set up my pip config to look only at a specific private repo for a single package, but both the private repo and the standard <code>https://pypi.python.org/simple/</code> repo for everything else. I tried setting the private repo as my index-url and PyPi as an extra-index-url, but that will still search both repositories for the most recent package version.</p>
  
  <p>Is there anyway to specify, within my pip config, the specific repo to use for a given package? Ideally something like this:</p>
  
  <pre><code>[global]
  force-index: https://privaterepo.net/simple
      - package_x
  </code></pre>