Contents

Windows11下Python的pip配置

Contents

记录一下给pip换国内源,省得不记得了又去查。

来源

阿里巴巴镜像站pypi镜像_pypi下载地址_pypi安装教程-阿里巴巴开源镜像站 (aliyun.com)

lwcaicsdn的博客Linux/Windows更换pip源

操作

在"C:\Users\用户名\AppData\Roaming"路径下新建文件夹pip,在此文件夹下新建文件pip.ini,写入

1
2
3
4
5
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com