List all the packages

List all the packages, modules installed in python pip

There are three ways to get the list of all the libraries or packages or modules installed in python using pip list command, pip freeze command and help function .

All the three ways are explained below

1. Get the list of all the packages in python Using Help function:

To get the list of installed packages in python you can simply type the below command in python IDE help(“modules”)

help("modules")

This will list all the modules installed in the system .

2. List all the packages, modules installed in python Using pip list:

open command prompt on your windows and type the following command pip list

This will get the list of installed packages along with their version in angular braces which is shown below

pip list

3. List all the packages, modules installed in python Using pip freeze:

Open command prompt on your windows and type the following command pip freeze

pip freeze

This will get the list of installed packages along with their version as shown below

These are the three different methods that lists the packages or libraries installed in python.

Last updated