当前位置:首页 > 操作系统 > Windows

pip windows更换国内源

  1. 打开appdata文件夹,在资源管理器的地址栏输入%appdata%后回车
  2. 新建一个pip文件夹,在pip文件夹里面新建一个配置文件pip.ini
  3. 在配置文件中输入如下内容后保存即可:
                    <code>[global]
    timeout = 6000
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    trusted-host = pypi.tuna.tsinghua.edu.cn
    </code>
                
  4. 国内源地址:
                    <code>阿里云 = http://mirrors.aliyun.com/pypi/simple/
    中国科技大学 =  https://pypi.mirrors.ustc.edu.cn/simple/
    豆瓣(douban) =  http://pypi.douban.com/simple/
    清华大学 =  https://pypi.tuna.tsinghua.edu.cn/simple/
    中国科学技术大学 =  http://pypi.mirrors.ustc.edu.cn/simple/
    </code>
                

原文:https://www.cnblogs.com/felix1/p/13391424.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐