开发者社区 问答 正文

如何配置国内的pypi镜像源?

如何配置国内的pypi镜像源?

展开
收起
游客jsfdfsowxviqw 2021-11-08 14:19:06 11972 分享 版权
3 条回答
写回答
取消 提交回答
  • xuexi

    2022-05-04 22:45:49
    赞同 展开评论
  • 楼上答得不错

    2022-04-30 13:43:57
    赞同 展开评论
  • PyPI 镜像源下载地址:https://mirrors.aliyun.com/pypi/

    配置方法 a. 找到下列文件

    ~/.pip/pip.conf

    b. 在上述文件中添加或修改:

    [global] index-url = https://mirrors.aliyun.com/pypi/simple/

    [install] trusted-host=mirrors.aliyun.com

    2021-11-08 18:42:49
    赞同 展开评论
问答地址: