Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

I would like to get a list of Python modules, which are in my Python installation (UNIX server).

How can you get a list of Python modules installed in your computer?

1 Answer

0 votes
by (106k points)

 There’s a very simple way to get the list of locally installed Python modules which is:-

help('modules')

You need to type the above command in a Python shell/command prompt.

If you only want to see the currently used modules then you can use the below-mentioned code:-

import sys as s 

s.modules.keys()

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...