Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pkg_resources
- installed_packages = pkg_resources.working_set
- installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
- for i in installed_packages])
- print(*installed_packages_list, sep='\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement