1.在C:\Users(用户)\All Users (本机账号)路径下创建文件夹 pip 2.在查看里勾选扩展名 3.在pip文件夹中创建pip.txt,写入以下脚本 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple 4.更改pip.txt文件名称为pip.ini