Public · Protected · Private
simple way to upgrade all Python packages in environment
Type: Public  |  Created: 2020-01-16  |  Frozen: Yes
« Previous Public Blog Next Public Blog »
Comments
  • import pkg_resources from subprocess import call packages = [dist.project_name for dist in pkg_resources.working_set] call("pip install --upgrade " + ' '.join(packages), shell=True)
This blog is frozen. No new comments or edits allowed.