The help message for the install
command will include the default value next to the --index-url
option.
$ pip install -h
...
-i, --index-url <url> Base URL of Python Package Index (default https://pypi.python.org/simple).
...
The message may vary slightly depending on your version of pip
. If an alternate address is configured, it will appear in that help message.
$ cat ~/.config/pip/pip.conf
[global]
index-url = https://my.local.mirror.com/simple
$ pip install -h
...
-i, --index-url <url> Base URL of Python Package Index (default https://my.local.mirror.com/simple).
...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…