今天看啥  ›  专栏  ›  基因学苑

给pip安装python模块提提速

基因学苑  · 公众号  ·  · 2024-08-06 09:11
    

文章预览

pip是python官方默认模块安装工具,虽然我喜欢使用conda来管理python模块,但有些包还是需要pip来安装。不过pip默认下载地址比较慢,而且经常断,不过切换镜像之后速度一下子就会快很多。 pip镜像 国内有很多pip源,这里推荐几个常用的软件源。 阿里镜像: https: / /mirrors.aliyun.com/pypi /simple/ 百度镜像: https: / /mirror.baidu.com/pypi /simple/  清华镜像: https: //pypi.tuna.tsinghua.edu.cn/simple/ 中科大镜像: https: //pypi.mirrors.ustc.edu.cn/simple/ 华为镜像: https: / /mirrors.huaweicloud.com/repository /pypi/simple 配置镜像方法一 可以直接在pip命令行添加镜像地址。 # 通过清华镜像安装numpy模块 pip install numpy -i https://mirrors.aliyun.com/pypi/simple/ 有时候需要添加trusted-host选项 pip install --trusted-host mirrors.huaweicloud.com -i https://mirrors.huaweicloud.com/repository/pypi/simple numpy 配置镜像方法二 如果嫌每次添 ………………………………

原文地址:访问原文地址
快照地址: 访问文章快照
总结与预览地址:访问总结与预览