230
I want to check all the locally installed Python modules in my system, how can I do it?
You can use the below code,
import pip sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()])