The additional server usage can be persisted in the configuration file pip.conf
(or pip.ini
on Windows). Since you stated you're on MacOS, it seems you have found the correct location (according to the official docs):
The names and locations of the configuration files vary slightly across platforms. You may have per-user, per-virtualenv or site-wide (shared amongst all users) configuration:
Per-user:
...
On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf
if directory $HOME/Library/Application Support/pip
exists else $HOME/.config/pip/pip.conf
.
There are also a legacy per-user configuration file which is also respected, these are located at:
On Unix and macOS the configuration file is: $HOME/.pip/pip.conf
Find the config file, open it with an editor and comment out (or remove) lines setting the index-url
/extra-index-url
options.