Daniel Arbuckle's Mastering Python
上QQ阅读APP看书,第一时间看更新

Searching the Package Index with pip

If we don't want to fire up our browser to go searching through the index, we can also do it from the command line through pip, as shown in the following command:

$ python3 -m pip search asyncio   

This command performs the same search that we did earlier through the web interface:

Doing it this way is often faster; but as you can see in the preceding screenshot, it only provides us with a name and a brief description of each package. This is perfect for getting a quick reminder about the package name, but not so good for more in-depth research.