Python pip命令

Usage:
  pip <command> [options]     //pip <命令> [选择]

Commands:  //命令
  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                      Search PyPI for packages.   //在PyPI中搜索软件包
  cache                       Inspect and manage pip’s wheel cache.  //检查和管理pip的轮缓存
  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. //显示帮助
  --isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration. //在隔离模式下运行pip,忽略环境变量和用户配置
  -v, --verbose               Give more output. Option is additive, and can be used up to 3 times. //提供更多输出。选件是添加剂,最多可使用3次。
  -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).//减少输出。选件是添加剂,最多可以使用3次(对应于警告,错误和严重日志记录级别)。
  --log <path>                Path to a verbose appending log. //详细附加日志的路径
  --proxy <proxy>             Specify a proxy in the form [user:passwd@]proxy.server:port.//以[user:passwd @] proxy.server:port的形式指定代理。
  --retries <retries>         Maximum number of retries each connection should attempt (default 5 times).//每个连接应尝试的最大重试次数(默认5次)
  --timeout <sec>             Set the socket timeout (default 15 seconds). //设置套接字超时(默认15秒)
  --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.  //将此主机或主机:端口对标记为受信任,即使它没有有效的或任何对HTTPS。
  --cert <path>               Path to alternate CA bundle. //备用CA捆绑软件的路径。
  --client-cert <path>        Path to SSL client certificate, a single file containing the private key and the
                              certificate in PEM format.  //SSL客户端证书的路径,一个包含私钥和PEM格式的证书。
  --cache-dir <dir>           Store the cache data in <dir>. //将缓存数据存储在<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.  //不要定期检查PyPI,以确定是否有新版本的pip可用于下载。暗示--no-index。
  --no-color                  Suppress colored output   //抑制彩色输出
  --no-python-version-warning
                              Silence deprecation warnings for upcoming unsupported Pythons.//即将推出的不受支持的Python的静默弃用警告

 

posted @ 2020-06-06 19:07  Crown-V  阅读(435)  评论(0)    收藏  举报