pip show

使用方法

python -m pip show [options] <package> ...
py -m pip show [options] <package> ...

説明

インストールされている 1 つ以上のパッケージに関する情報を表示します。

出力は RFC 準拠のメールヘッダー形式です。

オプション

-f, --files

各パッケージのインストール済みファイルの完全なリストを表示します。

(環境変数: PIP_FILES)

  1. パッケージに関する情報を表示する

    $ python -m pip show sphinx
    Name: Sphinx
    Version: 1.4.5
    Summary: Python documentation generator
    Home-page: https://sphinx-doc.dokyumento.jp/
    Author: Georg Brandl
    Author-email: georg@python.org
    License: BSD
    Location: /my/env/lib/python2.7/site-packages
    Requires: docutils, snowballstemmer, alabaster, Pygments, imagesize, Jinja2, babel, six
    
    C:\> py -m pip show sphinx
    Name: Sphinx
    Version: 1.4.5
    Summary: Python documentation generator
    Home-page: https://sphinx-doc.dokyumento.jp/
    Author: Georg Brandl
    Author-email: georg@python.org
    License: BSD
    Location: /my/env/lib/python2.7/site-packages
    Requires: docutils, snowballstemmer, alabaster, Pygments, imagesize, Jinja2, babel, six
    
  2. パッケージに関するすべての情報を表示する

    $ python -m pip show --verbose sphinx
    Name: Sphinx
    Version: 1.4.5
    Summary: Python documentation generator
    Home-page: https://sphinx-doc.dokyumento.jp/
    Author: Georg Brandl
    Author-email: georg@python.org
    License: BSD
    Location: /my/env/lib/python2.7/site-packages
    Requires: docutils, snowballstemmer, alabaster, Pygments, imagesize, Jinja2, babel, six
    Metadata-Version: 2.0
    Installer:
    Classifiers:
       Development Status :: 5 - Production/Stable
       Environment :: Console
       Environment :: Web Environment
       Intended Audience :: Developers
       Intended Audience :: Education
       License :: OSI Approved :: BSD License
       Operating System :: OS Independent
       Programming Language :: Python
       Programming Language :: Python :: 2
       Programming Language :: Python :: 3
       Framework :: Sphinx
       Framework :: Sphinx :: Extension
       Framework :: Sphinx :: Theme
       Topic :: Documentation
       Topic :: Documentation :: Sphinx
       Topic :: Text Processing
       Topic :: Utilities
    Entry-points:
       [console_scripts]
       sphinx-apidoc = sphinx.apidoc:main
       sphinx-autogen = sphinx.ext.autosummary.generate:main
       sphinx-build = sphinx:main
       sphinx-quickstart = sphinx.quickstart:main
       [distutils.commands]
       build_sphinx = sphinx.setup_command:BuildDoc
    
    C:\> py -m pip show --verbose sphinx
    Name: Sphinx
    Version: 1.4.5
    Summary: Python documentation generator
    Home-page: https://sphinx-doc.dokyumento.jp/
    Author: Georg Brandl
    Author-email: georg@python.org
    License: BSD
    Location: /my/env/lib/python2.7/site-packages
    Requires: docutils, snowballstemmer, alabaster, Pygments, imagesize, Jinja2, babel, six
    Metadata-Version: 2.0
    Installer:
    Classifiers:
       Development Status :: 5 - Production/Stable
       Environment :: Console
       Environment :: Web Environment
       Intended Audience :: Developers
       Intended Audience :: Education
       License :: OSI Approved :: BSD License
       Operating System :: OS Independent
       Programming Language :: Python
       Programming Language :: Python :: 2
       Programming Language :: Python :: 3
       Framework :: Sphinx
       Framework :: Sphinx :: Extension
       Framework :: Sphinx :: Theme
       Topic :: Documentation
       Topic :: Documentation :: Sphinx
       Topic :: Text Processing
       Topic :: Utilities
    Entry-points:
       [console_scripts]
       sphinx-apidoc = sphinx.apidoc:main
       sphinx-autogen = sphinx.ext.autosummary.generate:main
       sphinx-build = sphinx:main
       sphinx-quickstart = sphinx.quickstart:main
       [distutils.commands]
       build_sphinx = sphinx.setup_command:BuildDoc