基本语法

  • 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
    
  • 查看需要升级的包(图片示范)

    pip更新安装删除包

相关文章:

  • 2021-09-25
  • 2021-11-19
  • 2022-02-07
  • 2022-01-11
  • 2021-08-16
  • 2022-12-23
  • 2021-11-19
  • 2021-04-10
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2022-02-01
  • 2022-12-23
  • 2021-05-11
  • 2021-06-12
  • 2022-12-23
相关资源
相似解决方案