Would you like to get a list of Python modules? There are many ways you can get the list of installed packages on python. Here is How can you get a list of Python modules installed in your machine?

How to check installed modules in Python?

Python Help

1. Using help function.

You can use help function in python shell to get the list of modules installed.

help("modules")

or

help('modules package')

pip

2. using python-pip

Install pip by the following command.

sudo apt-get install python-pip

then enter this

pip freeze

or

pip list

pydoc

3. Using pydoc

Enter the following command in your terminal

pydoc modules

Sam Azgor

Howdy. My name is Sam Azgor. My online presence started as a blogger. Currently i play with remote machines. Occasionally I write various type of articles.

samazgor samazgor


Published