I am getting this error in pip search while studying python. The picture is an error when I pip search. Can you tell me how to fix it?
$ pip search pdbx ERROR: Exception: Traceback (most recent call last): File "*/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 224, in _main status = self.run(options, args) File "*/lib/python3.7/site-packages/pip/_internal/commands/search.py", line 62, in run pypi_hits = self.search(query, options) File "*/lib/python3.7/site-packages/pip/_internal/commands/search.py", line 82, in search hits = pypi.search({'name': query, 'summary': query}, 'or') File "/usr/lib/python3.7/xmlrpc/client.py", line 1112, in __call__ return self.__send(self.__name, args) File "/usr/lib/python3.7/xmlrpc/client.py", line 1452, in __request verbose=self.__verbose File "*/lib/python3.7/site-packages/pip/_internal/network/xmlrpc.py", line 46, in request return self.parse_response(response.raw) File "/usr/lib/python3.7/xmlrpc/client.py", line 1342, in parse_response return u.close() File "/usr/lib/python3.7/xmlrpc/client.py", line 656, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault: <Fault -32500: 'RuntimeError: This API has been temporarily disabled due to unmanageable load and will be deprecated in the near future. Please use the Simple or JSON API instead.'>
The upshot is that searching for Python packages with pip, eg: pip search ascii or pip3 search png , isn't possible because this backend search API is unavailable. In March, the API was permanently disabled, depriving developers of one of several ways to programmatically find packages in PyPI.
pip search command is used to search the index and identify packages that match the search terms. For example, python3 -m pip search pandas will return all the packages that satisfy the search term pandas .
Updating Pip When an update for pip is available, and you run a pip command, you will see a message that says, “You are using pip version xy. a, however version xy. b is available.” You can run “pip install --upgrade pip” to install and use the new version of pip.
The pip search command queries PyPI's servers, and PyPI's maintainers have explained that the API endpoint that the pip search command queries is very resource intensive and too expensive for them to always keep open to the public. Consequently they sometimes throttle access and are actually planning to remove it completely soon.
See this GitHub issues thread ...
The solution I am using for now is to pip install pip-search
(a utility created by GitHub user @victorgarric).
So, instead of 'pip search', I use pip_search. Definitely beats searching PyPI via a web browser
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With