我想将重新安装Zope2的所有要求放到[p0]中。大多数repoze软件包似乎都没有出现在PyPi上,但是它们有一个替代的PyPi索引requirements file。但是我不知道如何告诉pip与需求文件一起使用该索引。对于单个软件包,这很容易
here
我尝试了以下内容
pip install zopelib -i http://dist.repoze.org/zope2/2.10/simple/
或在我的requirements.txt中,这些的所有种类或排列:
pip install -r requirements.txt -i http://dist.repoze.org/zope2/2.10/simple/
或(因为zopelib -i http://dist.repoze.org/zope2/2.10/simple/
zopelib --index http://dist.repoze.org/zope2/2.10/simple/
-i http://dist.repoze.org/zope2/2.10/simple/ zopelib
说“请注意,所有这些选项必须都排成一行。”]
documentation
所以,告诉点子将--index http://dist.repoze.org/zope2/2.10/simple/
zopelib
用作索引的正确方法是什么?
http://dist.repoze.org/zope2/2.10/simple/:
requirements.txt
示例:
-i http://dist.repoze.org/zope2/2.10/simple
zopelib
在包/项目名称之前,在需求文件中添加一个额外的索引位置:
$ pip install -r requirements.txt
...
Successfully installed zopelib
或者,您可以使用--extra-index-url <Extra URLs other than index-url>
<some_project_name>
或-i
。
参考:--index-url <Base URL of the Python Package Index>