Python Pip 参考手册 - pip show 命令

yufei       5 年, 9 月 前       3315

pip show 命令用于显示一个或多个已安装包的信息

语法

pip show 命令的语法格式如下

pip show [options] <package> <package2> ...

选项

  • -f, --files

    显示每个已安装包的的完整文件列表

范例

  1. 显示包 requests 的信息

    $ pip show requests   
    Name: requests
    Version: 2.19.1
    Summary: Python HTTP for Humans.
    Home-page: http://python-requests.org
    Author: Kenneth Reitz
    Author-email: me@kennethreitz.org
    License: Apache 2.0
    Location: /Users/yufei/python/pip/lib/python3.7/site-packages
    Requires: urllib3, idna, certifi, chardet
    Required-by:
    
  2. 显示包 requests 的完整信息

    $ pip show requests
    Name: requests
    Version: 2.19.1
    Summary: Python HTTP for Humans.
    Home-page: http://python-requests.org
    Author: Kenneth Reitz
    Author-email: me@kennethreitz.org
    License: Apache 2.0
    Location: /Users/yufei/python/pip/lib/python3.7/site-packages
    Requires: certifi, chardet, urllib3, idna
    Required-by: 
    Metadata-Version: 2.0
    Installer: pip
    Classifiers:
      Development Status :: 5 - Production/Stable
      Intended Audience :: Developers
      Natural Language :: English
      License :: OSI Approved :: Apache Software License
      Programming Language :: Python
      Programming Language :: Python :: 2
      Programming Language :: Python :: 2.7
      Programming Language :: Python :: 3
      Programming Language :: Python :: 3.4
      Programming Language :: Python :: 3.5
      Programming Language :: Python :: 3.6
      Programming Language :: Python :: Implementation :: CPython
      Programming Language :: Python :: Implementation :: PyPy
    Entry-points:
    
  3. 显示包 requests 已安装的文件

    $ pip show -f requests       
    Name: requests
    Version: 2.19.1
    Summary: Python HTTP for Humans.
    Home-page: http://python-requests.org
    Author: Kenneth Reitz
    Author-email: me@kennethreitz.org
    License: Apache 2.0
    Location: /Users/yufei/python/pip/lib/python3.7/site-packages
    Requires: urllib3, certifi, chardet, idna
    Required-by: 
    Files:
      requests-2.19.1.dist-info/DESCRIPTION.rst
      requests-2.19.1.dist-info/INSTALLER
      requests-2.19.1.dist-info/LICENSE.txt
      requests-2.19.1.dist-info/METADATA
      requests-2.19.1.dist-info/RECORD
      requests-2.19.1.dist-info/WHEEL
      requests-2.19.1.dist-info/metadata.json
      requests-2.19.1.dist-info/top_level.txt
      requests/__init__.py
      requests/__pycache__/__init__.cpython-37.pyc
      requests/__pycache__/__version__.cpython-37.pyc
      requests/__pycache__/_internal_utils.cpython-37.pyc
      requests/__pycache__/adapters.cpython-37.pyc
      requests/__pycache__/api.cpython-37.pyc
      requests/__pycache__/auth.cpython-37.pyc
      requests/__pycache__/certs.cpython-37.pyc
      requests/__pycache__/compat.cpython-37.pyc
      requests/__pycache__/cookies.cpython-37.pyc
      requests/__pycache__/exceptions.cpython-37.pyc
      requests/__pycache__/help.cpython-37.pyc
      requests/__pycache__/hooks.cpython-37.pyc
      requests/__pycache__/models.cpython-37.pyc
      requests/__pycache__/packages.cpython-37.pyc
      requests/__pycache__/sessions.cpython-37.pyc
      requests/__pycache__/status_codes.cpython-37.pyc
      requests/__pycache__/structures.cpython-37.pyc
      requests/__pycache__/utils.cpython-37.pyc
      requests/__version__.py
      requests/_internal_utils.py
      requests/adapters.py
      requests/api.py
      requests/auth.py
      requests/certs.py
      requests/compat.py
      requests/cookies.py
      requests/exceptions.py
      requests/help.py
      requests/hooks.py
      requests/models.py
      requests/packages.py
      requests/sessions.py
      requests/status_codes.py
      requests/structures.py
      requests/utils.py
    
目前尚无回复
简单教程 = 简单教程,简单编程
简单教程 是一个关于技术和学习的地方
现在注册
已注册用户请 登入
关于   |   FAQ   |   我们的愿景   |   广告投放   |  博客

  简单教程,简单编程 - IT 入门首选站

Copyright © 2013-2022 简单教程 twle.cn All Rights Reserved.