[英]How to validate pip's --extra-index-url?
I am unable to find certain packages that should be found from a local package index that I've defined with the --extra-index-url
in my global pip.ini
file. 我无法在全局
pip.ini
文件中使用--extra-index-url
定义的本地包索引中找到某些应找到的包。
How can I validate that my pip
is using this properly? 如何验证我的
pip
是否正确使用了它? In my scenario I'm using a virtual environment. 在我的场景中,我使用的是虚拟环境。
I have tried pip config list
because it sounded promising in pip help
, but I get nothing as an output. 我尝试了
pip config list
因为它在pip help
听起来很有希望,但是我没有得到任何输出。
Try installing a module that doesn't exist: 尝试安装不存在的模块:
pip install --extra-index-url=https://example.com made-up
In my case (aside from a lot of errors) I also get: 就我而言(除了很多错误),我还得到:
Looking in indexes: https://pypi.org/simple, https://example.com
Collecting made-up
Could not find a version that satisfies the requirement made-up (from versions: )
No matching distribution found for made-up
If you are setup correctly, you should see the extra repo URL in the output. 如果设置正确,您应该在输出中看到额外的回购URL。 If you are running with defaults the
"Looking in indexes"
line is not shown. 如果使用默认值运行,则不会显示
"Looking in indexes"
行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.