pip download 参数与使用
--no-clean Don't clean up build directories.
不要清理构建目录。
-c, --constraint <file> Constrain versions using the given constraints file. This option can be used multiple times.
使用给定的约束文件约束版本。此选项可以多次使用。
-r, --requirement <file> Install from the given requirements file. This option can be used multiple times.
从给定的需求文件安装。此选项可以多次使用。
-b, --build <dir> Directory to unpack packages into and build in. Note that an initial build still takes place in a temporary directory. The location of temporary directories can be controlled by setting the TMPDIR environment variable (TEMP on Windows) appropriately. When passed, build directories are not cleaned in case of failures.
用于将软件包解包并构建的目录。请注意,初始构建仍在临时目录中进行。可以通过适当设置TMPDIR环境变量(在Windows上为TEMP)来控制临时目录的位置。通过时,构建目录不会在失败的情况下清除。
--no-deps Don't install package dependencies.
不要安装软件包依赖项。仅下载指定包。
--global-option <options> Extra global options to be supplied to the setup.py call before the install command.
在安装命令之前,将向setup.py调用提供额外的全局选项。
--no-binary <format_control> Do not use binary packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either ":all:" to disable all binary packages, ":none:" to empty the set (notice the colons), or one or more package names with commas between them (no colons). Note that some packages are tricky to compile and may fail to install when this option is used on them.
不要使用二进制包。可以多次提供,每次都增加到现有值。接受“:all:”禁用所有二进制软件包,接受“:none:”清空集合(注意冒号),或者接受一个或多个软件包名称,并且它们之间用逗号分隔(不冒号)。请注意,某些软件包很难编译,当在其上使用此选项时可能无法安装。
--only-binary <format_control>
Do not use source packages. Can be supplied multiple times, and each time adds to the existing value. Accepts either ":all:" to disable all source packages, ":none:" to empty the set, or one or more package names with commas between them. Packages without binary distributions will fail to install when this option is used on them.
不要使用源程序包。可以多次提供,每次都增加到现有值。接受“:all:”禁用所有源软件包,或者接受“:none:”清空集合,或者接受一个或多个软件包名称,并且它们之间用逗号分隔。如果没有二进制分发包,则在使用此选项时将无法安装。
--prefer-binary Prefer older binary packages over newer source packages.
与新的源软件包相比,旧的二进制软件包更为可取。
--src <dir> Directory to check out editable projects into. The default in a virtualenv is "<venv path>/src". The default for global installs is "<current dir>/src".
检出可编辑项目的目录。 virtualenv中的默认值为“ <venv path> / src”。全局安装的默认值为“ <当前目录> / src”。
--pre Include pre-release and development versions. By default, pip only finds stable versions.
包括预发行和开发版本。默认情况下,pip仅查找稳定版本。
--require-hashes Require a hash to check each requirement against, for repeatable installs. This option is implied when any package in a requirements file has a --hash option.
需要一个哈希值来检查每个要求,以确保可重复安装。当需求文件中的任何程序包都具有--hash选项时,将隐含此选项。
--progress-bar <progress_bar> Specify type of progress to be displayed [off|on|ascii|pretty|emoji] (default: on)
指定要显示的进度类型[off | on | ascii | pretty | emoji](默认值:on)
--no-build-isolation Disable isolation when building a modern source distribution. Build dependencies specified by PEP 518 must be already installed if this option is used.
构建现代源分发时禁用隔离。如果使用此选项,则必须已经安装了由PEP 518指定的生成依赖项。
--use-pep517 Use PEP 517 for building source distributions (use --no-use-pep517 to force legacy behaviour).
使用PEP 517构建源代码发行版(使用--no-use-pep517强制执行传统行为)。
-d, --dest <dir> Download packages into <dir>.
将软件包下载到<dir>中。
--platform <platform> Only use wheels compatible with <platform>. Defaults to the platform of the running system.
仅使用与<platform>兼容的whl。默认为正在运行的系统的平台。
注 :manylinux2014_x86_64或者manylinux1_x86_64,而不是linux_x86_64。
--python-version <python_version> The Python interpreter version to use for wheel and "Requires-Python" compatibility checks. Defaults to a version derived from the running interpreter. The version can be specified using up to three dot-separated integers (e.g. "3" for 3.0.0, "3.7" for 3.7.0, or "3.7.3"). A major-minor version can also be given as a string without dots (e.g. "37" for 3.7.0).
用于车轮和“ Requires-Python”兼容性检查的Python解释器版本。默认为从运行的解释器派生的版本。最多可以使用三个点分隔的整数来指定版本(例如,“ 3”代表3.0.0,“ 3.7”代表3.7.0或“ 3.7.3”)。主次版本也可以不带点的字符串形式给出(例如,“ 3.7.0”为“ 37”)。
--implementation <implementation>
Only use wheels compatible with Python implementation <implementation>, e.g. 'pp', 'jy', 'cp', or 'ip'. If not specified, then the current interpreter implementation is used. Use 'py' to force implementation-agnostic wheels.
仅使用与Python实现<implementation>兼容的轮子,例如'pp','jy','cp'或'ip'。如果未指定,则使用当前的解释器实现。使用'py'强制实现无关的轮子。
--abi <abi> Only use wheels compatible with Python abi <abi>, e.g. 'pypy_41'. If not specified, then the current interpreter abi tag is used. Generally you will need to specify --implementation, --platform, and --python-version when using this option.
仅使用与Python abi <abi>兼容的轮子,例如'pypy_41'。如果未指定,则使用当前的解释器abi标签。通常,使用此选项时,需要指定--implementation,--platform和--python-version。
Package Index Options:
-i, --index-url <url> Base URL of the Python Package Index (default https://pypi.org/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.
Python软件包索引的基本URL(默认为https://pypi.org/simple)。这应指向符合PEP 503(简单存储库API)的存储库或以相同格式布置的本地目录。
--extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url.
除--index-url外,还使用包索引的其他URL。应遵循与--index-url相同的规则。
--no-index Ignore package index (only looking at --find-links URLs instead).
忽略软件包索引(仅查看--find-links URL)。
-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
如果是html文件的URL或路径,请解析以找到指向sdist(.tar.gz)或wheel(.whl)文件等档案的链接。如果是目录的本地路径或file:// URL,请在目录列表中查找档案。不支持VCS项目URL的链接
pip download 参数与使用的更多相关文章
- pip download 只下载不安装命令的使用方法
比如下载 django 1.8.11版本和simplejson 3.14.0版本的包 那么就将所需的包写入 requirement.txt 那么我的requirement.txt内容就是: djan ...
- 利用 pip download 打包软件来提供离线安装
文章目录 1.通过 pip download 下载安装包 2.利用 pip install --no-index 离线安装 1.通过 pip download 下载安装包 linux-oz6w:~ # ...
- pip 命令参数以及如何配置国内镜像源
文章更新于:2020-04-05 注:如果 pip 命令不可以用,参见:python pip命令不能用 文章目录 一.参数详解 1.命令列表 2.通用参数列表 二.实际应用 1.常用命令 2.`pip ...
- 使用国内镜像通过pip安装python的一些包 Cannot fetch index base URL http://pypi.python.org/simple/
原文地址:http://www.xuebuyuan.com/1157602.html 学习flask,安装virtualenv环境,这些带都ok,但是一安装包总是出错无法安装, 比如这样超时的问题: ...
- python使用pip离线安装库
一.前言及环境 1. 场景及整体思路 最近在做一个大数据项目,开发过程中用自己的机子安装了很多库,开发完之后需要部署到客户那边的环境中,但是客户那边的环境是不能联网的,于是就需要离线进行库的安装. 上 ...
- 使用pip安装python库的几种方式
操作系统 : CentOS7.5.1804_x64 Python 版本 : 3.6.8 1.使用pip在线安装 1.1 安装单个package 格式如下: pip install SomePackag ...
- 最全的 pip 使用指南,50% 你可能没用过
所有的 Python 开发者都清楚,Python 之所以如此受欢迎,能够在众多高级语言中,脱颖而出,除了语法简单,上手容易之外,更多还要归功于 Python 生态的完备,有数以万计的 Python 爱 ...
- 【转】最全的 pip 使用指南,50% 你可能没用过
[转]最全的 pip 使用指南,50% 你可能没用过 所有的 Python 开发者都清楚,Python 之所以如此受欢迎,能够在众多高级语言中,脱颖而出,除了语法简单,上手容易之外,更多还要归功于 P ...
- python 工具链 包管理工具 pip
Installation mac下可以采用 brew,easy_install(python自带)等方式安装. centos下可以采用yum,easy_install等方式安装. 但是上面两种方式在系 ...
- 第13.4 使用pip安装和卸载扩展模块
一.pip指令介绍 Python 使用pip来管理扩展模块,包括安装和卸载,具体指令包括: pip install xx: 安装xx模块 pip list: 列出已安装的模块 pip install ...
随机推荐
- ts 学习笔记
var message:string = "Hello World" console.log(message) // ts 1基础类型 任意类型 any 声明为 any 的变量可以 ...
- winform 容器内存泄漏
循环中释放容器时调用Dispose()方法会销毁对象,导致容器的个数变化. 正确示例//方法一for (int i = this.flowLayoutPanel1.Controls.Count-1; ...
- Windows2016安装.NetFramework 3.5
Windows2016安装.NetFramework 3.5 Windows2016服务器默认安装的是 .Net 4.6.2版本,但是有时候我们经常会需要用到.Net 3.5版本.以下介绍的是在线和离 ...
- 为开源项目贡献代码-pycharm使用git-登录注册功能分析-判断手机号存在接口-多种方式登录接口-腾讯云短信申请
目录 为开源项目贡献代码-pycharm使用git-登录注册功能分析-判断手机号存在接口-多种方式登录接口-腾讯云短信申请 git内容大回顾 今日内容概要 今日内容详细 1 为开源项目贡献代码 2 p ...
- oracle数据库安装出现的问题
根据相关安装教程,安装好oracle后,使用plsql连接时,不能成功连接时: 1.检查相关的环境变量等是否配置正确 2.认真看清楚 oracle客户端的相关配置 3.出现这个问题(我的是没有选择当前 ...
- Android学习——控件EditText
1.主要属性
- python 操作 ES 二、mappings
环境 python:3.8 es:7.8.0 环境安装 pip install elasticsearch==7.8.0 from elasticsearch import Elasticsearch ...
- ASR6601:国产化lora SOC芯片兼容SX1262/SX1268
ASR6601为目前首颗国产化支持LoRaWAN低功耗广域网无线通信SoC芯片.ASR6601在单芯片上集成了通用微控制器和射频单元(SX1262),包括射频收发器,调制解调器和48 MHz 主频.A ...
- 【PS】PS如何删除图片中的白字
[PS]PS如何删除图片中的白字 首先打开ps,然后导入要操作的图片,接着选择左边工具栏中的魔棒工具. 对所要操作的文字进行框选,可以按住shift键进行连续操作 点击上方工具栏中的选择 | 修改 | ...
- 1,docker遇到的问题1
pushd "%~dp0"dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txtfor /f %% ...