E
E
Elisey Vlasenko2020-07-13 14:14:30
Python
Elisey Vlasenko, 2020-07-13 14:14:30

How to get list of python3 modules via script?

I searched on the Internet - even did not find it.
To clarify, I don't need a list of standard modules.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
ScriptKiddo, 2020-07-13
@homus32

from pip._internal.operations import freeze

x = freeze.freeze()
for p in x:
    print(p)

Source: https://stackoverflow.com/a/31304042

D
Dr. Bacon, 2020-07-13
@bacon

pip list, then read the docs on how to call this command from python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question