繁体   English   中英

如何验证pip的--extra-index-url?

[英]How to validate pip's --extra-index-url?

我无法在全局pip.ini文件中使用--extra-index-url定义的本地包索引中找到某些应找到的包。

如何验证我的pip是否正确使用了它? 在我的场景中,我使用的是虚拟环境。

我尝试了pip config list因为它在pip help听起来很有希望,但是我没有得到任何输出。

尝试安装不存在的模块:

pip install --extra-index-url=https://example.com made-up

就我而言(除了很多错误),我还得到:

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

如果设置正确,您应该在输出中看到额外的回购URL。 如果使用默认值运行,则不会显示"Looking in indexes"行。

暂无
暂无

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

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