Is there a way in Python to list all installed packages and their versions?
I know I can go inside python/Lib/site-packages and see what files and direc
python/Lib/site-packages
My take:
#!/usr/bin/env python3 import pkg_resources dists = [str(d).replace(" ","==") for d in pkg_resources.working_set] for i in dists: print(i)