pip常用指令

一、 windows命令提示符中的常见pip指令

   

    install 【 安装包安装 (Install packages.)】

    download 【 下载下载包 (Download packages.)】

    uninstall 【 卸载卸载包 (Uninstall packages.)】

    freeze 【 冻结按需求格式安装的包的输出 (Output installed packages in requirements format.)】

    list 【 列表列出已安装的包 ( List installed packages.)】

    show 【 显示已安装软件包的信息 ( Show information about installed packages.)】

    check 【 检查已安装的软件包是否具有兼容的依赖项 ( Verify installed packages have compatible dependencies.)】

    config 【 配置管理本地和全局配置 ( Manage local and global configuration.)】

    search 【 搜索PyPI查找包 (Search PyPI for packages.)】

    wheel 【 根据您的需求构建轮子 (Build wheels from your requirements.)】

    hash 【 包存档的哈希计算哈希 ( Compute hashes of package archives.)】

    completion 【 用于命令完成的辅助命令 ( A helper command used for command completion.)】

    debug 【 显示对调试有用的信息 ( Show information useful for debugging.)】

    help 【 帮助显示命令的帮助 (Show help for commands.)】

二、常用命令及格式

  install    下载(在命令提示符中默认下载最新版)

    命令格式:pip install 模块名    例:pip install pygame      #下载pygame这个模块

  uninstall   卸载

    命令格式:pip uninstall 模块名   例:pip uninstall pygame   #卸载pygame这个模块

  show     展示已安装的“模块”的信息

    命令格式:pip show 模块名      例:pip show pygame  #展示出pygame的信息

   list     列表列出已经安装的库

    命令格式:pip list          例:pip list         #电脑会列出已经安装的库名

   help    显示命令的帮助      例:pip help      #会显示出有关pip的内容

  

 

原文地址:https://www.cnblogs.com/longhair/p/13864097.html