I’m to this forum and maybe this has been purposed already. The message currently being delivered from pip search is a bad UX experience. Considering that Python is a language often picked up by those new to programming and pip search is used to explore the Python packages available, it seems to make more sense to return a non-stack trace response. Something long the lines of:
pip search is currently disabled and may be removed in the future. Use https://pypi.org to search for packages in the meantime until a solution is devised.
This way people that just started down the programming path don’t feel like they did something wrong or broke something. I know that doesn’t concern folx that have been in the Python space for any given period of time, but the language is only growing in popularity and since humans use these tools it might worth it from a UX experience.