Possible Duplicate:
Unable to get a list of installed Python modules
How do I print a list of all the modules that are available for import from within my script in Python3?
To access the list of all installed modules accessible via sys.path
programmatically rather than inside an interactive session, you can use pkgutil.iter_modules()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With