1.用户家目录下面新建pip文件夹 2.在其中新建pip.ini文件 3.复制粘贴以下代码 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple/