How to List all Packages installed using pip [Python]


In order to see a list of all packages installed using pip you can use pip list command in the terminal.

Get List of installed pip packages.
Get a List of installed pip packages.

Syntax: pip list [options]

Example:
$ pip list
Output:
Package                Version
---------------------- --------
attrs                  19.3.0
Automat                0.8.0
beautifulsoup4         4.9.3
pyOpenSSL              19.0.0
pyparsing              2.4.7
PyPrind                2.11.2
pyrsistent             0.15.5
pyserial               3.4
pySmartDL              1.3.4
PyYAML                 5.3.1
requests               2.22.0
requests-unixsocket    0.2.0
simplejson             3.16.0
six                    1.14.0
soupsieve              2.0.1
SpeechRecognition      3.8.1
zipp                   1.0.0
zope.interface         4.7.1
 $
Example with JSON formatted output
$ pip list --format=json
[
   {
      "name":"attrs",
      "version":"19.3.0"
   },
   {
      "name":"Automat",
      "version":"0.8.0"
   },
   {
      "name":"beautifulsoup4",
      "version":"4.9.3"
   },
   {
      "name":"blinker",
      "version":"1.4"
   },
   {
      "name":"certifi",
      "version":"2019.11.28"
   },
   {
      "name":"chardet",
      "version":"3.0.4"
   },
   {
      "name":"Click",
      "version":"7.0"
   },
   {
      "name":"cloud-init",
      "version":"20.1"
   },
   {
      "name":"colorama",
      "version":"0.4.3"
   },
   {
      "name":"zope.interface",
      "version":"4.7.1"
   }
]


Have Questions? Post them here!

Topics Coverage:


🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.

Follow Us: GitHub | Facebook | Twitter | Instagram