Created
July 12, 2018 04:45
-
-
Save ari-vedant-jain/d4222a76c7791c6f4402b8f79593ae54 to your computer and use it in GitHub Desktop.
This file contains hidden or 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) | |
| sorted(["%s==%s" % (i.key, i.version) for i in pip.get_installed_distributions()]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment