Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...