Skip to content

Instantly share code, notes, and snippets.

@Staler2019
Created October 11, 2021 15:56
Show Gist options
  • Save Staler2019/f46d29d2ab46cd408c18e21d26ba0c13 to your computer and use it in GitHub Desktop.
Save Staler2019/f46d29d2ab46cd408c18e21d26ba0c13 to your computer and use it in GitHub Desktop.
import pkg_resources
from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set]
# print(packages)
call("pip install --upgrade " + ' '.join(packages), shell=True)
# + " --use-feature=2020-resolver" is not the origin this code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment