python中pip相关命令

用pip安装第三方包的命令

pip install xxx --user

用pip更新第三方包

pip install --upgrade xxx --user

用pip卸载第三方包

pip uninstall xxx --user

查看用pip安装的所有的第三方包

pip list

查看已经过期的第三方包

pip list --outdated

查看某个已经安装的第三方包

pip show xxx

pip更新的方法

# 方法一
python -m pip install --upgrade pip
# 方法二
python -m pip install -U --force-reinstall pip
# 方法三
pip install --user --upgrade pip

原文地址:https://www.cnblogs.com/shuaishuaidefeizhu/p/11102181.html