Python 如何验证pip';s——额外的索引url?
我无法从我在全局Python 如何验证pip';s——额外的索引url?,python,python-3.x,pip,Python,Python 3.x,Pip,我无法从我在全局pip.ini文件中使用--额外索引url定义的本地包索引中找到某些包 我如何验证我的pip是否正确使用了它?在我的场景中,我使用的是虚拟环境 我尝试了pip配置列表,因为它在pip帮助中听起来很有希望,但我没有得到任何输出。尝试安装一个不存在的模块: pip install --extra-index-url=https://example.com made-up 在我的情况下(除了许多错误),我还得到: Looking in indexes: https://pypi.or
pip.ini
文件中使用--额外索引url
定义的本地包索引中找到某些包
我如何验证我的pip
是否正确使用了它?在我的场景中,我使用的是虚拟环境
我尝试了
pip配置列表
,因为它在pip帮助
中听起来很有希望,但我没有得到任何输出。尝试安装一个不存在的模块:
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。如果使用默认值运行,则不会显示“查找索引”行。尝试安装不存在的模块:
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。如果您使用默认值运行,
“查找索引”
行不会显示。pip install pkg to check=-vvv
将不会安装任何东西(因为不存在pkg to check==
要求),但打印所有包pip
将尝试与请求匹配,连同他们的URL。pip install pkg to check==-vvv
不会安装任何东西(因为不存在pkg to check=
要求),但打印所有包pip
将尝试与请求及其URL匹配。