【发布时间】:2015-12-06 02:37:31
【问题描述】:
我们有一个本地 pypi,我们在其中放置了一些 python 包。但是,pip 无法安装该软件包。
pip search 会找到包:
$ pip search --index=http://artifactory.ours.com/api/pypi/pypi-local/simple hello
hello - UNKNOWN
但是 pip install 给出了以下内容:
pip install --pre -r requirements.txt --trusted-host=artifactory.ours.com
收集你好(来自 -r requirements.txt(第 4 行)) 找到满足要求的版本你好(来自 -r requirements.txt(第 4 行))(来自版本:)没有匹配的分布 找到你好(来自 -r requirements.txt(第 4 行))
这里是 requirements.txt:
# requirements.txt
--allow-all-external
--extra-index-url http://artifactory.ours.com/artifactory/api/pypi/pypi-local/simple
hello
【问题讨论】:
标签: python pip artifactory pypi