python one click upgrade all pip package methods
- 2020-05-19 05:12:15
- OfStack
pip_ungrade_all. py code is as follows:
# -*- coding: utf-8 -*-
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
Execute the script pip_ungrade_all.py as an administrative identity
# python pip_ungrade_all.py