Per-user:
On Unix the default configuration file is: $HOME/.config/pip/pip.conf
which respects the XDG_CONFIG_HOME
environment variable.
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
.
On Windows the configuration file is %APPDATA%\pip\pip.ini
.
如果文件不存在,则需要自己创建。