python3 pip更换源

再次吐槽出国带宽
Ubuntu直接更新包或者python的pip安装更新都慢到死,这里记录一下更换pip源的方法

来源是参考pip官方手册
https://pip.pypa.io/en/latest/user_guide/#configuration

On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable.
On Mac OS X the configuration file is $HOME/Library/Application Support/pip/pip.conf.
On Windows the configuration file is %APPDATA%\pip\pip.ini.

On Unix and Mac OS X the configuration file is: $HOME/.pip/pip.conf
On Windows the configuration file is: %HOME%\pip\pip.ini

这些地方设置pip.conf是可以接受的
在我这里是C:\Users\USERNAME\pip\pip.ini
我推荐使用阿里云的mirrors