Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何验证pip';s——额外的索引url?_Python_Python 3.x_Pip - Fatal编程技术网

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匹配。