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 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 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 to a verbose appending log.
--no-input Disable prompting for input.
--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 Specify a proxy in the form
scheme://[user:passwd@]proxy.server:port.
--retries Maximum number of retries each connection should
attempt (default 5 times).
--timeout Set the socket timeout (default 15 seconds).
--exists-action Default action when a path already exists:
(s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
--trusted-host Mark this host or host:port pair as trusted,
even though it does not have valid or any HTTPS.
--cert 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 to SSL client certificate, a single file
containing the private key and the certificate
in PEM format.
--cache-dir Store the cache data in .
--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.
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> 启用已弃用的功能,将来将删除。