pip更新安装删除包

基本语法

  • pip查看包列表

    pip list
    
  • 查看某个包是否安装

    pip show --files [包名]
    
  • pip安装包

    pip install [包名]
    
  • pip删除/卸载包

    pip uninstall [包名]
    
  • 查看需要升级的包

    pip list --outdated
    
  • 升级包

    pip install --upgrade [包名]
    

部分执行结果示范

  • 查看requests包(文字示范)

    eric@E-TPad:~$ pip3 show --files requests
    Name: requests
    Version: 2.22.0
    Summary: Python HTTP for Humans.
    Home-page: http://python-requests.org
    Author: Kenneth Reitz
    Author-email: me@kennethreitz.org
    License: Apache 2.0
    Location: /usr/lib/python3/dist-packages
    Requires: 
    Required-by: 
    Files:
    Cannot locate installed-files.txt
    
  • 查看需要升级的包(图片示范)

    查看需升级的包
posted @ 2020-04-29 11:51  Eric鞠  阅读(4635)  评论(0编辑  收藏  举报