pip config debug
can show you the config file you're using.
My config file is at /Users/**/.config/pip/pip.conf
with index-url.
env_var:
env:
global:
/Library/Application Support/pip/pip.conf, exists: False
site:
/Users/**/anaconda3/envs/python/pip.conf, exists: False
user:
/Users/**/.pip/pip.conf, exists: False
/Users/**/.config/pip/pip.conf, exists: True
global.index-url: https://pypi.org/simple