Created
March 9, 2017 09:49
-
-
Save hndr91/9597a5cbb6ee8f8a56a0802d3ddeeae8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pip | |
installed_packages = pip.get_installed_distributions() | |
installed_packages_list = sorted(["%s==%s" % (i.key, i.version) | |
for i in installed_packages]) | |
print(installed_packages_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment