不知道最近大家有沒有發現在使用 pip search 的時候,總是出現一個 XMLRPC 的報錯。
$ pip search xlrd
ERROR: XMLRPC request failed [code: -32500]
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.
報錯信息最后提示參閱 https://status.python.org/,打開之后發現是 PyPI 的問題:
而截止 2021-03-24 的最近更新,由於至今仍不明來源的、持續了100天的 XMLRPC 濫用,Python.org 的 XMLRPC 將永久停止響應。
Update - We are now at 100 days since the decision to disable the XMLRPC search endpoint.
Traffic to the endpoint has not subsided in any substantial way and we have not heard from any of the parties who continue to issue hundreds of thousands of search calls per hour.
As such, XMLRPC search will be permanently disabled.
Mar 24, 14:22 UTC
這意味着 pip 的 search 功能將不再可用。現在,如果你輸入 pip search,將會顯示以下內容:
$ pip search xlrd
ERROR: XMLRPC request failed [code: -32500]
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.
所以,要想搜索包,可能只能直接訪問
PyPI
,或使用
pipsearch
這樣的包,或者和我一樣轉向
conda search
吧。

如何卸載 python setup.py install 安裝的包?

本文分享自微信公眾號 - 生信科技愛好者(bioitee)。
如有侵權,請聯系 support@oschina.cn 刪除。
本文參與“OSC源創計划”,歡迎正在閱讀的你也加入,一起分享。
