Window更换pip源(清华源)

    技术2022-07-15  55

    步骤如下: (1)在C:\Users\Default\AppData\Roaming\中新建pip文件夹,并新建txt文档,将下述内容粘贴到该txt文档中:

    [global] timeout = 6000 #可选解决超时 index-url = https://pypi.tuna.tsinghua.edu.cn/simple/ [install] trusted-host=pypi.tuna.tsinghua.edu.cn

    (2)将该txt文档重命名为pip.ini (3)执行命令配置全局源 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple (4)查看效果 可以看到,现在已经换成清华的源了,速度比以前快了很多。

    Processed: 0.013, SQL: 9