MacBook中更换pip下载源

终端中输入命令:mkdir ~/.pip #新建.pip目录touch pip.conf #新建pip.conf文件vi pip.conf #编辑pip.conf文件阿里源:[global]index-url = http://mirrors.aliyun.com/pypi/simple