欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 资讯 > 各语言镜像配置汇总

各语言镜像配置汇总

2025/2/23 10:30:55 来源:https://blog.csdn.net/qq_36078992/article/details/145250346  浏览:    关键词:各语言镜像配置汇总

镜像配置汇总

    • Nodejs [ npm ]
    • Python [ pip ]

Nodejs [ npm ]

// # 记录日期:2025-01-20// 查询当前使用的镜像
npm get registry// 设置淘宝镜像
npm config set registry https://registry.npmmirror.com/// 恢复为官方镜像
npm config set registry https://registry.npmjs.org/ 

Python [ pip ]

# 记录日期: 2025-01-20#### 查看当前使用的镜像
pip config get global.index-url#### 设置镜像
# 豆瓣镜像
pip config set global.index-url https://pypi.douban.com/simple/   # 阿里云镜像 
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/# 清华镜像
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/# 恢复默认镜像
pip config unset global.index-url

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词