UPDATE: I've released this as a seperate package, please check it out at github.com/achillesrasquinha/pipupgrade
Last active
September 4, 2018 09:32
-
-
Save achillesrasquinha/7098f6700cc2634c42e10b3aa8c61e3e to your computer and use it in GitHub Desktop.
A python script to update all your pip packages
since get_installed_distributions() is an internal function of pip, maybe it is proper to get packages by:
import pkg_resources
packages = [i for i in pkg_resources.working_set if i.project_name != "Python"]
or simply packages = [i for in __import__('pkg_resources').working_set if i.project_name != "Python"]
Thanks for the update, I prefer using the get_installed_distributed
function from pip. Seems to be in pip._internal.utils.misc
Hi @holm-xie @corradopetrelli, I've permanently moved the script to a seperate package http://git.io/pipupgrade
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!!!