python安装第三方库超时报错“Read time out”的解决办法
来源:互联网 发布:windows卸载程序在哪里 编辑:程序博客网 时间:2024/05/22 03:10
Question:
python安装第三方库超时报错—–Read time out
Answer:
①使用国内镜像安装
②设置超时时间
第一种方法:
pipy 国内镜像目前有:
http://pypi.douban.com/ 豆瓣
http://pypi.hustunique.com/ 华中理工大学
http://pypi.sdutlinux.org/ 山东理工大学
http://pypi.mirrors.ustc.edu.cn/ 中国科学技术大学
手动指定源:
在 pip 后面跟-i 来指定源,比如用豆瓣的源来安装 whois库:
pip install whois -i http://pypi.douban.com/simple
注意后面要有 /simple 目录!!!
配置文件 :
若需要创建或修改配置文件( linux 的文件在~/.pip/pip.conf , windows 在%HOMEPATH%\pip\pip.ini ),修改内容为:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
如果不加后面的 install
则需要每次在命令后面加上 –trusted-host
第二种方法:
安装whois库:
pip –default-timeout=100 install -U whois
4 0
- python安装第三方库超时报错“Read time out”的解决办法
- pip easy_install 安装python第三方库 超时报错
- python pip install 第三方库,报错:Read timed out
- pip安装python库总提示下载超时read timed out的解决办法
- python安装第三方模块出现Read timed out
- Python第三方库安装超时问题解决
- Python第三方库安装超时timeout
- pip安装scrapy报错 ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org, port=443) Read time out
- Python安装第三方库PIL时失败的解决办法
- Python安装第三方库PIL时失败的解决办法
- Read Time out Exception 解决办法
- 安装Tensorflow超时报错:socket.timeout: The read operation timed out
- Axis2调用超时Read timed out的解决办法
- pip 安装第三方库超时
- python安装第三方库,报“error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).”错误,解决办法
- Python request第三方库的安装
- python安装第三方库的命令
- Python第三方库的安装方法
- 1 ~ 9 每个数只能用一次 组成各类运算公式
- cudnn报错Loaded runtime CuDNN library: 5005 (compatibility version 5000) but source was compiled with
- 【资源整合】
- log4j2 实际使用详解
- TCP/IP 学习三-IP网际协议
- python安装第三方库超时报错“Read time out”的解决办法
- 基尼不纯度(Gini impurity)
- 整理菜单住方法(子类归属父类)
- Redux中间件源码理解
- 懒汉式单例设计模式同步问题
- PHP正则基础
- 5月集训Day1考试
- 晚期(运行期)优化
- OpenCV3.2+VS2013+Tesseract3.02.02配置