[root@localhost ~]# vim ~/.pip/pip.conf [global] index-url = https://pypi.doubanio.com/simple timeout = 120
在当前用户目录下新建pip/pip.ini 栗子:C:\Users\admin\pip\pip.ini