来自私有 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
命令中。请参阅文档 here。
我正在构建一个私有 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
命令中。请参阅文档 here。