使用清华源、百度源等快速pip install xxx 安装Python库 您所在的位置:网站首页 python源代码百度云 使用清华源、百度源等快速pip install xxx 安装Python库

使用清华源、百度源等快速pip install xxx 安装Python库

2023-08-07 22:16| 来源: 网络整理| 查看: 265

临时使用 清华源 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple your_package 百度源 pip install your_package -i https://simple.baidu.com/pypi/simple

注意:

simple 不能少, 是 https 而不是 http百度源不能安装tensorflow,keras等其他深度学习框架,但安装pandas,numpy这种是非常快的 设为默认

升级 pip 到最新的版本 (>=10.0.0) 后进行配置:

pip install pip -U pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

如果您到 pip 默认源的网络连接较差,临时使用本镜像站来升级 pip:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

注:安装不成功时可以多试几次,或者使用一下的源替换

pip install your_package -i 源

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有