网上大部分帖子讲的都是打开配置文件修改,那样太麻烦了,其实只要一行命令搞定:

 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

 

附国内常用镜像源:

阿里云:https://mirrors.aliyun.com/pypi/simple/

中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/

清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄