Mac更换pip源

这里用的是阿里的源,其他源请自行更换http://mirrors.aliyun.com/pypi/simple/ 即可

mkdir ~/.pip

tee ~/.pip/pip.conf <<-'EOF'
[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
EOF

希望能交流更多技术,关注小白的微信公众号吧。
在这里插入图片描述

小白技术社
原文地址:https://www.cnblogs.com/xbjss/p/13326694.html