1. 程式人生 > >Python更新所有pip package

Python更新所有pip package

pkg ins port work true project sources res resource

import pkg_resources from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set] call("pip install --upgrade " + ‘ ‘.join(packages)+‘ --user‘, shell=True)

Python更新所有pip package