title: how can i use pip search with my own nexus pypi repo?
body: <p>I deploy a nexus repo sys in my local area network, and I config a PyPI repo on it. I can use <code>pip install</code> to install package with my private mirror. But I cannot use <code>pip search</code>.</p>
  
  <p>Here is my pip.ini</p>
  
  <pre><code>[global]
  index-url = http://nexus.repo.com/repository/PyPI/simple
  index = http://nexus.repo.com/repository/PyPI/pypi
  trusted-host = nexus.repo.com
  </code></pre>
  
  <p>And when I use <code>pip search</code> it returns:</p>
  
  <blockquote>
    <p>C:\Users\user>pip search redis<br>
    HTTP error 404 while getting <a href="http://nexus.repo.com/repository/PyPI/pypi" rel="noreferrer">http://nexus.repo.com/repository/PyPI/pypi</a><br>
    Exception:<br>
    Traceback (most recent call last):<br>
      File "c:\python27\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args)<br>
      File "c:\python27\lib\site-packages\pip\commands\search.py", line 45, in run pypi_hits = self.search(query, options)<br>
      File "c:\python27\lib\site-packages\pip\commands\search.py", line 62, in search hits = pypi.search({'name': query, 'summary': query}, 'or')<br>
      File "c:\python27\lib\xmlrpclib.py", line 1243, in <strong>call</strong> return self.__send(self.__name, args)<br>
      File "c:\python27\lib\xmlrpclib.py", line 1602, in __request verbose=self.__verbose<br>
      File "c:\python27\lib\site-packages\pip\download.py", line 776, in request response.raise_for_status()<br>
      File "c:\python27\lib\site-packages\pip_vendor\requests\models.py", line 862, in raise_for_status raise HTTPError(http_error_msg, response=self)<br>
    HTTPError: 404 Client Error: Not Found for url:<a href="http://nexus.repo.com/repository/PyPI/pypi" rel="noreferrer">http://nexus.repo.com/repository/PyPI/pypi</a><br>
        C:\Users\user></p>
  </blockquote>
  
  <p>I'm googling and googling, but coming up empty so far.
  So here I am, hoping someone else can guide me through this.
  thank you very much.</p>