Find all packages installed with easy_install/pip?

前端 未结 18 1237
醉话见心
醉话见心 2020-11-27 08:47

Is there a way to find all Python PyPI packages that were installed with easy_install or pip? I mean, excluding everything that was/is installed with the distributions tool

18条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 09:24

    Start with:

    $ pip list
    

    To list all packages. Once you found the package you want, use:

    $ pip show 
    

    This will show you details about this package, including its folder. You can skip the first part if you already know the package name

    Click here for more information on pip show and here for more information on pip list.

    Example:

    $ pip show jupyter
    Name: jupyter
    Version: 1.0.0
    Summary: Jupyter metapackage. Install all the Jupyter components in one go.
    Home-page: http://jupyter.org
    Author: Jupyter Development Team
    Author-email: jupyter@googlegroups.org
    License: BSD
    Location: /usr/local/lib/python2.7/site-packages
    Requires: ipywidgets, nbconvert, notebook, jupyter-console, qtconsole, ipykernel    
    

提交回复
热议问题