简体   繁体   English

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

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

相关问题 如何在 environment.yml 中指定 pip --extra-index-url? - How to specify pip --extra-index-url in environment.yml? 升级到 18.1 后无法将 --extra-index-url 与 pip 一起使用 - Unable to use --extra-index-url with pip after upgrading to 18.1 我如何在 pip.conf 中声明多个 extra-index-url - How do i declare more than one extra-index-url in pip.conf python pip 具有 index-url 和 extra-index-url 的优先顺序 - python pip priority order with index-url and extra-index-url How to specify authentication for Pip Project setup pip with extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) on azure pipelines/artifacts - How to specify authentication for Pip Project setup pip with extra-index-url in pip.ini (Windows) or pip.conf (Mac/Linux) on azure pipelines/artifacts 将pip与两个都指向同一个域的--extra-index-url参数一起使用 - Using pip with two --extra-index-url arguments that both point to the same domain python2; 使用--trusted-host和--extra-index-url pip parse_requirements - python2; pip parse_requirements with --trusted-host and --extra-index-url --extra-index-url 在 docker 文件中不起作用 - --extra-index-url is not working in docker file pip 使用 GitLab 的标志“--index-url”和“--extra-index-url”安装导致“错误:HTTP 错误 404” - pip install with flag "--index-url" and "--extra-index-url" from GitLab results in "ERROR: HTTP error 404 while getting" 使用 extra-index-url 时如何在邮件 ID 中转义 @ 符号 - How can I escape @ symbol in mail ID while using extra-index-url
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM