pip list -h
pip list -h

pip list -h

pip list 的用法

Usage:
  pip list [options]

Description:
  List installed packages, including editables.

  Packages are listed in a case-insensitive sorted order.

List Options:
  -o, --outdated              List outdated packages
  -u, --uptodate              List uptodate packages
  -e, --editable              List editable projects.
  -l, --local                 If in a virtualenv that has global access, do not list globally-installed packages.
  --user                      Only output packages installed in user-site.
  --path <path>               Restrict to the specified installation path for listing packages (can be used multiple times).
  --pre                       Include pre-release and development versions. By default, pip only finds stable versions.
  --format <list_format>      Select the output format among: columns (default), freeze, or json. The 'freeze' format cannot be used with the --outdated
                              option.
  --not-required              List packages that are not dependencies of installed packages.
  --exclude-editable          Exclude editable package from output.
  --include-editable          Include editable package from output.
  --exclude <package>         Exclude specified package from the output

Package Index Options:
  -i, --index-url <url>       Base URL of the Python Package Index (default https://pypi.tuna.tsinghua.edu.cn/simple). This should point to a repository
                              compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.
  --extra-index-url <url>     Extra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url.
  --no-index                  Ignore package index (only looking at --find-links URLs instead).
  -f, --find-links <url>      If a URL or path to an html file, then parse for links to archives such as sdist (.tar.gz) or wheel (.whl) files. If a local
                              path or file:// URL that's a directory, then look for archives in the directory listing. Links to VCS project URLs are not
                              supported.

General Options:
  -h, --help                  Show help.
  --debug                     Let unhandled exceptions propagate outside the main subroutine, instead of logging them to stderr.
  --isolated                  Run pip in an isolated mode, ignoring environment 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 be used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output. Option is additive, and can be used 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 keyring library if user input is allowed. Specify which mechanism to use [disabled,
                              import, subprocess]. (default: disabled)
  --proxy <proxy>             Specify a proxy in the form scheme://[user:passwd@]proxy.server:port.
  --retries <retries>         Maximum number of retries each connection should attempt (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. If provided, overrides the default. See 'SSL Certificate Verification' in pip
                              documentation for more information.
  --client-cert <path>        Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.
  --cache-dir <dir>           Store the cache data in <dir>.
  --no-cache-dir              Disable the cache.
  --disable-pip-version-check
                              Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.
  --no-color                  Suppress colored output.
  --no-python-version-warning
                              Silence deprecation warnings for upcoming unsupported Pythons.
  --use-feature <feature>     Enable new functionality, that may be backward incompatible.
  --use-deprecated <feature>  Enable deprecated functionality, that will be removed in the future.
使用方法
  pip list [options]

说明
  列出已安装的软件包,包括可编辑的软件包。

  软件包以不区分大小写的排序方式列出。

列表选项:
  -o, --outdated 列出过时软件包
  -u,--uptodate 列出最新软件包
  -e, --editable 列出可编辑的项目。
  -l,--local 如果在具有全局访问权限的虚拟环境中,则不列出全局安装的软件包。
  --user 仅输出安装在用户站点的软件包。
  --path <path> 限制在指定的安装路径下列出软件包(可多次使用)。
  --pre 包括预发布和开发版本。默认情况下,pip 只查找稳定版本。
  --format <list_format> 从列(默认)、冻结或 json 中选择输出格式。freeze 格式不能与 --outdated
                              选项一起使用。
  --not-required 列出与已安装软件包无关的软件包。
  --exclude-editable 从输出中排除可编辑的软件包。
  --include-editable 从输出中包含可编辑的软件包。
  --exclude <package> 从输出中排除指定软件包

软件包索引选项:
  -i, --index-url <url> Python 软件包索引的基本 URL(默认为 https://pypi.tuna.tsinghua.edu.cn/simple)。它应指向符合
                              或本地目录。
  --extra-index-url <url> 除了 --index-url 之外,还要使用的软件包索引的额外 URL。应遵循与 --index-url 相同的规则。
  --no-index忽略软件包索引(只查看--find-links URL)。
  -f, --find-links <url> 如果是 URL 或 html 文件路径,则解析指向 sdist (.tar.gz) 或 wheel (.whl) 文件等归档文件的链接。如果是本地
                              路径或 file:// URL,则在目录列表中查找存档。不支持指向 VCS 项目 URL 的链接。
                              不支持。

常规选项:
  -h、--help 显示帮助。
  --debug 让未处理的异常传播到主子程序之外,而不是记录到 stderr。
  --isolated 以隔离模式运行 pip,忽略环境变量和用户配置。
  --require-virtualenv 允许 pip 只在虚拟环境中运行,否则将错误退出。
  --python <python> 使用指定的 Python 解释器运行 pip。
  -v、--verbose 提供更多输出。选项是累加的,最多可使用 3 次。
  -V, --version 显示版本并退出。
  -q, --quiet 减少输出。选项是累加的,最多可使用 3 次(分别对应警告、错误和重要日志记录级别)。
                              级别)。
  --log <path> 通向冗长附加日志的路径。
  --no-input 禁用输入提示。
  --keyring-provider <keyring_provider> 键令提供者
                              如果允许用户输入,则启用通过钥匙串库查找凭据。指定使用哪种机制 [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 证书验证 "获取更多信息。
  --client-cert <path> SSL 客户端证书的路径,一个包含私钥和 PEM 格式证书的文件。
  --cache-dir <dir> 将缓存数据存储在 <dir> 中。
  --no-cache-dir 禁用缓存。
  --disable-pip-version-check
                              不定期检查 PyPI 以确定是否有新版本的 pip 可供下载。与 --no-index 隐含。
  --no-color 禁止彩色输出。
  --no-pythonversion-warning
                              静默即将到来的不支持 Python 版本的弃用警告。
  --use-feature <feature> 启用可能向后不兼容的新功能。
  --use-deprecated <feature> 启用将来会被删除的过时功能。

通过www.DeepL.com/Translator(免费版)翻译

发表回复

您的电子邮箱地址不会被公开。