来自私人pypi的包裹没有找到要求

时间:2016-08-19 15:42:58

标签: python python-2.7 pip setuptools

我正在构建一个私有的pypi服务器并且它正在运行,但我放在那里的软件包有一些来自官方pypi的要求,但是当我尝试安装我的私有软件包时,install_requires打破试图找到我的私有存储库中的外部依赖项(我在日志中看到了这一点)。

当我在本地生成包并尝试安装

pip install -U package.tar.gz

它的工作原理和依赖关系可以在官方的pypi存储库中找到。

我想念什么?

我的流程如下:

python setup.py sdist upload -r http://127.0.0.1:8000/sample/
pip install -i http://127.0.0.1:8000/pypi/

我得到了:

Downloading/unpacking mypackage
  http://127.0.0.1:8000/pypi/mypackage/ uses an insecure transport scheme (http). Consider using https if 127.0.0.1:8000 has it available
  Downloading mypackage-1.0.tar.gz (399kB): 399kB downloaded
  Running setup.py (path:/tmp/pip-build-LjFfGj/mypackage/setup.py) egg_info for package mypackage

Downloading/unpacking feedparser (from mypackage)
  http://127.0.0.1:8000/pypi/feedparser/ uses an insecure transport scheme (http). Consider using https if 127.0.0.1:8000 has it available
  Could not find any downloads that satisfy the requirement feedparser (from mypackage)
Cleaning up...
No distributions at all found for feedparser (from mypackage)
Storing debug log for failure in /home/rodolpho/.pip/pip.log

在日志中我看到:

Downloading/unpacking feedparser (from mypackage)
  Getting page http://127.0.0.1:8000/pypi/feedparser/
  Could not fetch URL http://127.0.0.1:8000/pypi/feedparser/: 404 Client Error: Not Found

1 个答案:

答案 0 :(得分:1)

--extra-index-url https://pypi.python.org/pypi添加到pip install命令中。请参阅文档here

相关问题