Find default pip index-url

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).
...

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)