[英]pip install from private repo but requirements from PyPi
I would like to install a package from private repo but when I run this:我想从私人仓库安装 package 但是当我运行这个时:
pip install myapp -i https://myrepo.net/pypi/myfeed/simple
I got this error我收到了这个错误
ERROR: Could not find a version that satisfies the requirement myapp (from versions: none)
ERROR: No matching distribution found for myapp
I assume this is because requirements for this package are not in the private repo, so I tried to add extra-index-url我认为这是因为这个 package 的要求不在私人仓库中,所以我尝试添加 extra-index-url
pip install myapp -i https://myrepo.net/pypi/myfeed/simple --extra-index-url https://pypi.python.org/pypi
But I got the exact same error但我得到了完全相同的错误
What am I doing wrong?我究竟做错了什么?
It's likely that either myapp
was not found on your index at all, or that a compatible distribution of myapp
does not exist - for example, it requires a different version of Python than you are attempting to install with.可能根本没有在您的索引上找到
myapp
,或者不存在兼容的myapp
发行版 - 例如,它需要的 Python 版本与您尝试安装的版本不同。
Running pip
with the --verbose
flag should tell you why it wasn't able to install myapp
:使用
--verbose
标志运行pip
应该会告诉您为什么它无法安装myapp
:
pip install myapp -i https://myrepo.net/pypi/myfeed/simple --verbose
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.