Ubuntu pip换阿里源

mkdir ~/.pip
vim ~/.pip/pip.conf

按 i 进入编辑模式

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
 
[install]
trusted-host=mirrors.aliyun.com

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

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