win10 下,python 的 pip 更换使用国内 镜像

1、操作步骤

1)在 用户目录 下创建 pip 目录,

在这里插入图片描述

2)在 pip 目录 创建 pip.ini 文件 ,内容如下:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

3) 配置完成后如下:

在这里插入图片描述

2、参考

https://www.cnblogs.com/wqpkita/p/7248525.html

https://blog.csdn.net/yamadeee/article/details/80178996

猜你喜欢

转载自blog.csdn.net/xiaojin21cen/article/details/107883671