Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Created July 23, 2020 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/1d6f8bdec9cf5a1044635c13f0a005f9 to your computer and use it in GitHub Desktop.
Save Allwin12/1d6f8bdec9cf5a1044635c13f0a005f9 to your computer and use it in GitHub Desktop.
import pkg_resources
from subprocess import call
packages = []
for pkg in pkg_resources.working_set:
packages.append(pkg.project_name)
call("pip install --upgrade " + ''.join(packages), shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment