pip安装库速度较慢--常用的几个国内镜像
简述
其实操作起来非常简单
一般来说,我们使用pypi的方式都是
- 例如安装pandas库
pip install pandas
- 使用镜像的安装范式为
pip install -i http://... pandas
- 那个
http://...
就是代指国内镜像地址
常用的有镜像有
- 清华大学镜像
- https://pypi.tuna.tsinghua.edu.cn/simple/
- 阿里云
- http://mirrors.aliyun.com/pypi/simple/
- 中科大镜像
- https://pypi.mirrors.ustc.edu.cn/simple/
- 豆瓣镜像
- http://pypi.douban.com/simple/
- 中科大镜像2
- http://pypi.mirrors.ustc.edu.cn/simple/
比如利用清华的镜像安装seaborn库就有
D:\>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ seaborn
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
Collecting seabornDownloading https://pypi.tuna.tsinghua.edu.cn/packages/a8/76/220ba4420459d9c4c9c9587c6ce607bf56c25b3d3d2de62056efe482dadc/seaborn-0.9.0-py3-none-any.whl (208kB)100% |████████████████████████████████| 215kB 443kB/s
Requirement already satisfied: matplotlib>=1.4.3 in d:\software\python\lib\site-packages (from seaborn) (3.0.0)
Requirement already satisfied: numpy>=1.9.3 in d:\software\python\lib\site-packages (from seaborn) (1.15.2)
Requirement already satisfied: scipy>=0.14.0 in d:\software\python\lib\site-packages (from seaborn) (1.1.0)
Requirement already satisfied: pandas>=0.15.2 in d:\software\python\lib\site-packages (from seaborn) (0.23.4)
Requirement already satisfied: cycler>=0.10 in d:\software\python\lib\site-packages (from matplotlib>=1.4.3->seaborn) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in d:\software\python\lib\site-packages (from matplotlib>=1.4.3->seaborn) (2.2.0)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\software\python\lib\site-packages (from matplotlib>=1.4.3->seaborn) (1.0.1)
Requirement already satisfied: python-dateutil>=2.1 in d:\software\python\lib\site-packages (from matplotlib>=1.4.3->seaborn) (2.7.3)
Requirement already satisfied: pytz>=2011k in d:\software\python\lib\site-packages (from pandas>=0.15.2->seaborn) (2018.5)
Requirement already satisfied: six in d:\software\python\lib\site-packages (from cycler>=0.10->matplotlib>=1.4.3->seaborn) (1.11.0)
Requirement already satisfied: setuptools in d:\software\python\lib\site-packages (from kiwisolver>=1.0.1->matplotlib>=1.4.3->seaborn) (39.0.1)
Installing collected packages: seaborn
Successfully installed seaborn-0.9.0
pip安装库速度较慢--常用的几个国内镜像相关推荐
- Python环境下,提高pip安装库速度的方法!
一.前言 学习 Python 的话,仅掌握标准库是远不够的,有很多好用的第三方库我们也需要用到的 大家发现 pip install + 包名 的方式 安装第三方库的时候,下载速度很慢,有时还会超时,遇 ...
- pip安装库包以及.whl库包、.tar.gz库包具体方式
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 pip安装库包以及.whl库包..tar.gz库包具体方式 文章目录: 1 pip安装库包 2 安装 .whl库包文件 ...
- pip安装库 ERROR: Cannot unpack file C:\Users\admin\AppData...报错解决方法
一.报错 使用清华源安装 mysqlclient 时,出现 Cannot unpack file 报错: pip install mysqlclient==1.3.12 -index-url http ...
- pip 安装库时磁盘空间不足怎么办?如何从指定位置安装相应的包
pip 安装库是磁盘空间不足怎么办 磁盘空间不足,可以考虑释放空间,或增大空间,释放空间指的是默认情况下,将主文件夹下面的没用的文件删除一些,同时可以将缓存文件清空一些,linux的是~/.cache ...
- pip安装第三方库(mysqlclient)失败,cl.exe错误;pip安装库的过程
这里写自定义目录标题 pip安装mysqlclient失败解决方法 解决方法 报错原因以及pip安装库的过程 pip安装mysqlclient失败解决方法 安装mysqlclient或者某些第三方库的 ...
- Python 安装库的方法及解决pip 安装时速度缓慢的方法
pip安装: pip是python内置的非常好用的下载工具,基本可以下载全部的python库. pip 是 Python 库管理工具,该工具提供了对Python 库的查找.下载.安装.卸载的功能. p ...
- pip安装库包遇到错误:TypeError: expected str, bytes or os.PathLike object, not int 的解决方法
1 问题描述 1.在安装python3的库包时候,遇到和os模块相关的错误:TypeError: expected str, bytes or os.PathLike object, not int, ...
- Python中使用pip安装库时指定镜像源为豆瓣镜像源
场景 在使用pip进行安装库时,使用默认的库会很慢,甚至有时会出现远程主机中断了一个现有连接. 怎样在使用pip install 时指定镜像源为豆瓣镜像源. 实现 pip install moviep ...
- python 通过pip安装库 pycharm里面使用第三方库
安装所需的模块(python) pip 是 Python 包管理工具,该工具提供了对Python 包的查找.下载.安装.卸载的功能. 首先命令行输入pip3 --version查看是否有pip C:\ ...
最新文章
- 看了这篇C++笔记,你出去行走江湖我就放心了【C++】
- 使用nsenter进入docker容器后端报错 mesg: ttyname failed: No such file or directory
- 阿里云Quick BI——让人人都成为分析师
- 虚拟机centos7 桥接模式
- (转)分布式文件存储FastDFS(三)FastDFS配置
- loadrunner常见问题及解决方案
- python将网页保存为图片_使用Python保存网页上的图片或者保存页面为截图
- P3:线性分类、损失函数与梯度下降
- 联想e540风扇清灰_实力强劲无惧挑战,联想异能者就是这么强悍
- HDU 6191 2017广西邀请赛:Query on A Tree(字典树启发式合并)
- C++20 模式下将启用协程支持 CC 11
- 如何克服枯燥工作带来的单调感和厌烦感
- Silverlight 简介 Part.1(理解 Siverlight)
- 王垠系列博文(题名外挂URL)
- JavaScript生成唯一uuid
- mysql 导入工具 php_MySQL数据导入导出方法与工具介绍_PHP教程
- Pandas 实用技能,数据筛选 query 函数详细介绍
- android吉他谱组件,Android - 自定义View 实现 文本吉他谱的 动态控制 实现
- 数据治理之敏感数据探查
- 一个悄然成为世界最流行的操作系统!
热门文章
- Unity_UIWidgets学习笔记03_组件_Container
- K8S发布解释型语言应用的最佳实践
- 孔子绝粮于陈蔡子贡孔子问答节选(白话)
- RDIFramework.NET V2.9版本 WinFom部分新增与修正的功能
- Office365-----Skype for business
- Data Member 的存取
- sonar 代码质量管理平台
- JAVA顺序表的简单实现
- 《面向模式的软件体系结构1--模式系统》读书笔记(5)--- 管理
- 统一沟通-技巧-9-Lync 2010-Outlook 2010-自动配置-2-普通人员