简体   繁体   English

pip 从私人仓库安装,但来自 PyPi 的要求

[英]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.

相关问题 pip 从私人仓库安装,但 PyPi 的要求仅安装私人仓库 package - pip install from private repo but requirements from PyPi only installs private package Pip install with requirements.txt 从私人仓库提示输入密码 - Pip install with requirements.txt from private repo prompting for password pip 从私有仓库安装一个包,但从代理后面的 PyPi 安装依赖 - pip install a package from a private repo but dependencies from PyPi behind a proxy 在从需求文件中的私有存储库安装 pip 时避免 git clone - Avoid git clone while pip install from a private repo in requirements file Pip 从 pypi 安装有效,但从 testpypi 安装失败(找不到要求) - Pip install from pypi works, but from testpypi fails (cannot find requirements) 从私有bitbucket回购tar.gz文件进行pip安装 - pip install from a private bitbucket repo tar.gz file Pip 在谷歌云应用引擎中从私有 github repo 安装 package - Pip install package from private github repo in google cloud appengine 来自私人 github repo 的 pip install wheel 版本 - pip install wheel version from private github repo pip 从私有 github repo 安装 package 与部署密钥 Z05B6053C41A2130AFD6BDA3B - pip install package from private github repo with deploy key in docker 不能用pip从pypi安装 - Can't install from pypi with pip
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM