pip 设置镜像源

Windows 平台下:

首先,需要在user用户目录下,创建一个新的文件夹pip;
再在pip文件夹内建立一个文件pip.txt的文件, 以下内容写入文本中即可

[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = pypi.tuna.tsinghua.edu.cn
posted @ 2022-11-21 15:44  吖水的程序路  阅读(48)  评论(0编辑  收藏  举报