pip/docs/html/reference/pip_list.rst

104 lines
1.7 KiB
ReStructuredText
Raw Normal View History

2014-02-12 06:55:43 +01:00
.. _`pip list`:
========
2014-02-12 06:55:43 +01:00
pip list
========
2014-02-12 06:55:43 +01:00
.. contents::
2014-02-12 06:55:43 +01:00
Usage
2020-02-11 14:00:03 +01:00
=====
2014-02-12 06:55:43 +01:00
.. pip-command-usage:: list
Description
2020-02-11 14:00:03 +01:00
===========
2014-02-12 06:55:43 +01:00
.. pip-command-description:: list
Options
2020-02-11 14:00:03 +01:00
=======
2014-02-12 06:55:43 +01:00
.. pip-command-options:: list
.. pip-index-options:: list
2014-02-12 06:55:43 +01:00
Examples
2020-02-11 14:00:03 +01:00
========
2014-02-12 06:55:43 +01:00
#. List installed packages.
2014-02-12 06:55:43 +01:00
::
2014-02-12 06:55:43 +01:00
$ pip list
docutils (0.10)
Jinja2 (2.7.2)
MarkupSafe (0.18)
Pygments (1.6)
Sphinx (1.2.1)
2014-02-12 06:55:43 +01:00
#. List outdated packages (excluding editables), and the latest version available.
2014-02-12 06:55:43 +01:00
::
2014-02-12 06:55:43 +01:00
$ pip list --outdated
docutils (Current: 0.10 Latest: 0.11)
Sphinx (Current: 1.2.1 Latest: 1.2.2)
#. List installed packages with column formatting.
::
$ pip list --format columns
Package Version
------- -------
docopt 0.6.2
idlex 1.13
jedi 0.9.0
#. List outdated packages with column formatting.
::
$ pip list -o --format columns
Package Version Latest Type
---------- ------- ------ -----
retry 0.8.1 0.9.1 wheel
setuptools 20.6.7 21.0.0 wheel
#. List packages that are not dependencies of other packages. Can be combined with
other options.
::
$ pip list --outdated --not-required
docutils (Current: 0.10 Latest: 0.11)
2016-05-14 15:40:38 +02:00
#. Use legacy formatting
::
2016-05-14 15:40:38 +02:00
$ pip list --format=legacy
colorama (0.3.7)
docopt (0.6.2)
idlex (1.13)
jedi (0.9.0)
2016-05-14 15:40:38 +02:00
#. Use json formatting
::
$ pip list --format=json
[{'name': 'colorama', 'version': '0.3.7'}, {'name': 'docopt', 'version': '0.6.2'}, ...
#. Use freeze formatting
::
$ pip list --format=freeze
colorama==0.3.7
docopt==0.6.2
idlex==1.13
jedi==0.9.0