pip安装更新有3种办法
1. 直接安装
pip list --outdatedpip install --upgrade 模块名
2. Python代码中实现
import pipfrom subprocess import callfor dist in pip.get_installed_distributions(): call("pip install --upgrade " + dist,project_name, shell=True)
3.利用pip-review
pip install pip-reviewpip-review --local --interactive
pip模块自身的更新
pip uninstall pipeasy_install pip