【Python】「pip search」の代わりは何なの?

モジュールがないといわれるので、


pip search ***

で調べようとしますが、

使えません。

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.

👉 Remove the pip search command · Issue #5216 · pypa/pip hatena-bookmark

👉 Search results · PyPI hatena-bookmark

代替はこれですかね、「pip-search」 。

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.

「pip」 にラッパー気味に関数をセットしながら使うといいようです。


alias pip='function _pip(){
    if [ $1 = "search" ]; then
        pip_search "$2";
    else pip "$@";
    fi;
};_pip'

👉 pip-search · PyPI hatena-bookmark

しかしこれ公式ではないですよね?

👉 victorgarric/pip_search: Searching thought pip when hard times strike hatena-bookmark

みんなはどうしてるの?

ブラウザで検索してるの?

最近、python コマンドラインのまわりはいろいろ混乱します。

👉 macOS 12.3 で Python2 が消え、スクリプトが「bad interpreter: /usr/bin/python: no such file or directory」とは。 hatena-bookmark