如何使用pip搜索可用的Python包?

时间:2022-06-21 07:00:17

I would like to be able to search for an available Python package using pip (on the terminal). I would like a functionality similar to apt-cache in Ubuntu. More specifically, I would like to

我希望能够使用pip(在终端上)搜索可用的Python包。我想在Ubuntu中使用类似于apt-cache的功能。更具体地说,我想

  1. be able to search for packages given a term (similar to apt-cache search [package-name]), and
  2. 能够搜索给定术语的包(类似于apt-cache search [package-name]),和
  3. list all available packages.
  4. 列出所有可用的包。

4 个解决方案

#1


41  

To search for a package, issue the command

要搜索包,请发出命令

pip search [package-name]

#2


9  

  1. To search use pip search QUERY

    要搜索使用pip搜索QUERY

    Use pip help and pip help COMMAND to learn about all available commands and their options.

    使用pip help和pip help COMMAND来了解所有可用的命令及其选项。

  2. You can find a complete list of packages here:

    您可以在此处找到完整的包列表:

    https://pypi.python.org/pypi/

    https://pypi.python.org/pypi/

    Note the trailing slash! Without it you will end up on a different page.

    注意斜杠!没有它,你将最终在另一页。

    A index with simpler markup for easier automatic consumption can be found here:

    可以在此处找到具有更简单标记的索引,以便于自动使用:

    https://pypi.python.org/simple/

    https://pypi.python.org/simple/

#3


3  

To see a list of all available packages try running

要查看所有可用包的列表,请尝试运行

pip search *

#4


1  

Pip search can solve your problem if you don't want to use it too often. But after regular use I found it hard to read, slow to use and it didn't show infos I sometimes needed (upload time, license, size, etc) so I ended up writing an alternative which I think turned out pretty nice.

如果您不想经常使用Pip搜索,可以解决您的问题。但经常使用后我发现它很难阅读,使用起来很慢而且它没有显示我有时需要的信息(上传时间,许可证,大小等)所以我最后写了一个替代品,我认为结果非常好。

It is called yip and it is like pip search on steroids. It supports regex search, colorized output and a menu system which makes installing from search result super easy. If you want to know more or see a screencap check it out on GitHub.

它被称为yip,它就像是对类固醇的点子搜索。它支持正则表达式搜索,彩色输出和菜单系统,使搜索结果的安装非常容易。如果你想了解更多或看到一个screencap,请在GitHub上查看。

#1


41  

To search for a package, issue the command

要搜索包,请发出命令

pip search [package-name]

#2


9  

  1. To search use pip search QUERY

    要搜索使用pip搜索QUERY

    Use pip help and pip help COMMAND to learn about all available commands and their options.

    使用pip help和pip help COMMAND来了解所有可用的命令及其选项。

  2. You can find a complete list of packages here:

    您可以在此处找到完整的包列表:

    https://pypi.python.org/pypi/

    https://pypi.python.org/pypi/

    Note the trailing slash! Without it you will end up on a different page.

    注意斜杠!没有它,你将最终在另一页。

    A index with simpler markup for easier automatic consumption can be found here:

    可以在此处找到具有更简单标记的索引,以便于自动使用:

    https://pypi.python.org/simple/

    https://pypi.python.org/simple/

#3


3  

To see a list of all available packages try running

要查看所有可用包的列表,请尝试运行

pip search *

#4


1  

Pip search can solve your problem if you don't want to use it too often. But after regular use I found it hard to read, slow to use and it didn't show infos I sometimes needed (upload time, license, size, etc) so I ended up writing an alternative which I think turned out pretty nice.

如果您不想经常使用Pip搜索,可以解决您的问题。但经常使用后我发现它很难阅读,使用起来很慢而且它没有显示我有时需要的信息(上传时间,许可证,大小等)所以我最后写了一个替代品,我认为结果非常好。

It is called yip and it is like pip search on steroids. It supports regex search, colorized output and a menu system which makes installing from search result super easy. If you want to know more or see a screencap check it out on GitHub.

它被称为yip,它就像是对类固醇的点子搜索。它支持正则表达式搜索,彩色输出和菜单系统,使搜索结果的安装非常容易。如果你想了解更多或看到一个screencap,请在GitHub上查看。