Guest User

Untitled

a guest
Nov 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import pip
  2. installed_packages = pip.get_installed_distributions()
  3. installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
  4. for i in installed_packages])
  5. print(installed_packages_list)
Add Comment
Please, Sign In to add comment