title: pip not reading the ~/.pip/pip.conf
body: <p>This is pertaining to jfrog artifactory. pypi-public is our virtual repo and our internal pypi-internal is associated to pypi-public. I can see the package vapi_common on the web UI.</p>
  <p>The below command is able to search the package</p>
  <pre><code>pip search vapi_common --index=https://&lt;username&gt;:&lt;apikey&gt;@company.jfrog.io/artifactory/api/pypi/pypi-public/simple
  </code></pre>
  <p>However, if I use the same index-url in ~/.pip/pip.conf</p>
  <pre><code>[global]
  index-url = https://&lt;username&gt;:&lt;apikey&gt;@company.jfrog.io.jfrog.io/artifactory/api/pypi/pypi-public/simple
  </code></pre>
  <p>and then use the below command
  pip search vapi_common -vvv -&gt; fails the below error. As you can see, it is trying to reach pypi.org and is not honoring the index url given in pip.conf</p>
  <pre><code>pip search vapi_common -vvv
  Starting new HTTPS connection (1): pypi.org:443
  https://pypi.org:443 &quot;POST /pypi HTTP/1.1&quot; 200 419
  ERROR: Exception:
  Traceback (most recent call last):
    File &quot;/home/varmour/.pyenv/versions/3.8.8/lib/python3.8/site-packages/pip/_internal/cli/base_command.py&quot;, line 228, in _main
      status = self.run(options, args)
    File &quot;/home/varmour/.pyenv/versions/3.8.8/lib/python3.8/site-packages/pip/_internal/commands/search.py&quot;, line 60, in run
      pypi_hits = self.search(query, options)
    File &quot;/home/varmour/.pyenv/versions/3.8.8/lib/python3.8/site-packages/pip/_internal/commands/search.py&quot;, line 80, in search
      hits = pypi.search({'name': query, 'summary': query}, 'or')
    File &quot;/home/varmour/.pyenv/versions/3.8.8/lib/python3.8/xmlrpc/client.py&quot;, line 1109, in __call__
      return self.__send(self.__name, args)
    File &quot;/home/varmour/.pyenv/versions/3.8.8/lib/python3.8/xmlrpc/client.py&quot;, line 1450, in __request
      response = self.__transport.request(
    File &quot;/home/varmour/.pyenv/versions/3.8.8/lib/python3.8/site-packages/pip/_internal/network/xmlrpc.py&quot;, line 45, in request
      return self.parse_response(response.raw)
    File &quot;/home/varmour/.pyenv/versions/3.8.8/lib/python3.8/xmlrpc/client.py&quot;, line 1341, in parse_response
      return u.close()
    File &quot;/home/varmour/.pyenv/versions/3.8.8/lib/python3.8/xmlrpc/client.py&quot;, line 655, in close
      raise Fault(**self._stack[0])
  xmlrpc.client.Fault: &lt;Fault -32500: &quot;RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.&quot;&gt;
  </code></pre>