繁体   English   中英

私人pypi的软件包找不到要求

[英]Packages from private pypi don't find requirements

我正在构建一个私有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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM