Musings
Public · Protected · Private
simple way to upgrade all Python packages in environment
-
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.