当前位置: 首页 > news >正文

pip命令大全

pip命令手册
原版

Usage:   pip <command> [options]Commands:install                     Install packages.download                    Download packages.uninstall                   Uninstall packages.freeze                      Output installed packages in requirements format.inspect                     Inspect the python environment.list                        List installed packages.show                        Show information about installed packages.check                       Verify installed packages have compatible dependencies.config                      Manage local and global configuration.search                      Search PyPI for packages.cache                       Inspect and manage pip's wheel cache.index                       Inspect information available from package indexes.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.General Options:-h, --help                  Show help.--debug                     Let unhandled exceptions propagate outside themain subroutine, instead of logging them tostderr.--isolated                  Run pip in an isolated mode, ignoringenvironment variables and user configuration.--require-virtualenv        Allow pip to only run in a virtual environment;exit with an error otherwise.--python <python>           Run pip with the specified Python interpreter.-v, --verbose               Give more output. Option is additive, and can beused up to 3 times.-V, --version               Show version and exit.-q, --quiet                 Give less output. Option is additive, and can beused up to 3 times (corresponding to WARNING,ERROR, and CRITICAL logging levels).--log <path>                Path to a verbose appending log.--no-input                  Disable prompting for input.--keyring-provider <keyring_provider>Enable the credential lookup via the keyringlibrary if user input is allowed. Specify whichmechanism to use [disabled, import, subprocess].(default: disabled)--proxy <proxy>             Specify a proxy in the formscheme://[user:passwd@]proxy.server:port.--retries <retries>         Maximum number of retries each connection shouldattempt (default 5 times).--timeout <sec>             Set the socket timeout (default 15 seconds).--exists-action <action>    Default action when a path already exists:(s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.--trusted-host <hostname>   Mark this host or host:port pair as trusted,even though it does not have valid or any HTTPS.--cert <path>               Path to PEM-encoded CA certificate bundle. Ifprovided, overrides the default. See 'SSLCertificate Verification' in pip documentationfor more information.--client-cert <path>        Path to SSL client certificate, a single filecontaining the private key and the certificatein PEM format.--cache-dir <dir>           Store the cache data in <dir>.--no-cache-dir              Disable the cache.--disable-pip-version-checkDon't periodically check PyPI to determinewhether a new version of pip is available fordownload. Implied with --no-index.--no-color                  Suppress colored output.--no-python-version-warningSilence deprecation warnings for upcomingunsupported Pythons.--use-feature <feature>     Enable new functionality, that may be backwardincompatible.--use-deprecated <feature>  Enable deprecated functionality, that will beremoved in the future.
Usage:   pip <command> [options]Commands:install                     安装包。download                    下载包。uninstall                   卸载包。freeze                      以 requirements 格式输出已安装的包。inspect                     检查 Python 环境。list                        列出已安装的包。show                        显示有关已安装包的信息。check                       验证已安装的包是否具有兼容的依赖项。config                      管理本地和全局配置。search                      在 PyPI 中搜索包。cache                       检查和管理 pip 的 wheel 缓存。index                       检查从软件包索引中可用的信息。wheel                       从你的需求构建 wheel。hash                        计算包存档的哈希值。completion                  用于命令完成的辅助命令。debug                       显示用于调试的有用信息。help                        显示命令的帮助信息。General Options:-h, --help                  显示帮助信息。--debug                     允许未处理的异常传播到主例程之外,而不是将它们记录到 stderr。--isolated                  在隔离模式下运行 pip,忽略环境变量和用户配置。--require-virtualenv        允许 pip 仅在虚拟环境中运行;否则退出并显示错误。--python <python>           使用指定的 Python 解释器运行 pip。-v, --verbose               提供更多输出。该选项是累加的,最多可使用 3 次。-V, --version               显示版本并退出。-q, --quiet                 提供较少输出。该选项是累加的,最多可使用 3 次(分别对应 WARNING、ERROR 和 CRITICAL 日志级别)。--log <path>                附加日志的路径。--no-input                  禁用输入提示。--keyring-provider <keyring_provider>如果允许用户输入,则启用通过 keyring 库查找凭据。指定要使用的机制 [disabled, import, subprocess]。(默认值:disabled)--proxy <proxy>             指定代理的格式为 scheme://[user:passwd@]proxy.server:port。--retries <retries>         每个连接应尝试的最大次数(默认值为 5 次)。--timeout <sec>             设置套接字超时(默认为 15 秒)。--exists-action <action>    当路径已存在时的默认操作:(s)witch,(i)gnore,(w)ipe,(b)ackup,(a)bort。--trusted-host <hostname>   将此主机或主机:端口对标记为可信,即使它没有有效或任何 HTTPS。--cert <path>               PEM 编码的 CA 证书包的路径。如果提供,则覆盖默认值。有关更多信息,请参见 pip 文档中的 'SSL Certificate Verification'。--client-cert <path>        SSL 客户端证书的路径,一个包含私钥和 PEM 格式证书的单个文件。--cache-dir <dir>           将缓存数据存储在 <dir> 中。--no-cache-dir              禁用缓存。--disable-pip-version-check不定期检查 PyPI,以确定是否有可用于下载的 pip 新版本。在 --no-index 的情况下隐含。--no-color                  抑制带颜色的输出。--no-python-version-warning对即将不再支持的 Python,消除关于即将不再支持的警告。--use-feature <feature>     启用新功能,可能与向后兼容性不兼容。--use-deprecated <feature>  启用已弃用的功能,将来将删除。
http://www.lryc.cn/news/235647.html

相关文章:

  • Redis篇---第二篇
  • 【LeetCode刷题日志】232.用栈实现队列
  • 单元测试实战(二)Service 的测试
  • LabVIEW和NIUSRP硬件加快了认知无线电开发
  • 嵌入式软件工程师面试题——2025校招社招通用(十六)
  • 白盒测试之测试用例设计方法
  • 在CentOS 7上关闭SELinux
  • 基于单片机温湿度PM2.5报警系统
  • OpenHarmony系统编译环境
  • 二十三种设计模式全面解析-职责链模式(Chain of Responsibility Pattern):解放代码责任链,提升灵活性与可维护性
  • 通过制作llama_cpp的docker镜像在内网离线部署运行大模型
  • JavaScript 异步编程
  • linux课程第一课------命令的简单的介绍
  • XLua热更新框架原理和代码实战
  • Hive客户端hive与beeline的区别
  • <MySQL> 什么是数据库索引?数据库索引的底层结构是什么?
  • 对于koa中间件的理解
  • 分页文件pagefile.sys引出的疑问
  • 【开题报告】疫苗在线预约小程序的设计与实现
  • 【深度学习实验】注意力机制(二):掩码Softmax 操作
  • idea运行项目之后一直卡在Writing classes… 解决方案
  • CentOS7 安装mysql8(离线安装)postgresql14(在线安装)
  • 使用vant list实现订单列表,支持下拉加载更多
  • OpenCV快速入门:图像形态学操作
  • Scrapy----Scrapy简介
  • 基环树(pseudotree)入门
  • nrm的安装以及使用
  • Linux:补充一些常用命令
  • Maven编译报错:javacTask: 源发行版 1.8 需要目标发行版 1.8
  • python批量为视频添加文字水印和图片水印的程序