查看pip安装的Python库
查看安装的库
pip list或者pip freeze
查看过时的库
pip list --outdated
批量更新的Python脚本
import pip from subprocess import call for dist in pip.get_installed_distributions(): call("sudo pip install --upgrade " + dist.project_name, shell=True)
更新pip
pip install --upgrade pip
本文只发表于博客园和tonglin0325的博客,作者:tonglin0325,转载请注明原文链接:https://www.cnblogs.com/tonglin0325/p/6933818.html