python安装第三方库超时报错“Read time out”的解决办法
2017-05-12 18:42
633 查看
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
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
相关文章推荐
- pip安装python库总提示下载超时read timed out的解决办法
- python 安装第三方库,超时报错--Read timed out.
- Python安装第三方库,报错超时: Read timed out.
- python 安装第三方库,超时报错--Read timed out.
- python 安装第三方库,超时报错--Read timed out.
- Python安装pywinauto时遇到error: The read operation timed out解决方法
- 【Python】用pip安装python库下载超时的解决办法
- Python安装第三方库PIL时失败的解决办法
- 非root用户安装python第三方模块出现Permission denied的解决办法
- python 第三方 .whl包安装及出现的IOError问题解决办法
- Python在安装第三方模块遇到的问题及解决办法
- Read Time out Exception 解决办法
- Python使用pip安装第三方库时出现UnicodeError的解决办法(Windows平台下)
- python pip安装,出现超时 --Read timed out.
- python3.x安装第三方库的解决办法
- Python安装第三方库PIL时失败的解决办法
- Axis2调用超时Read timed out的解决办法一则
- python安装第三方库,报“error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).”错误,解决办法
- python安装第三方模块出现Read timed out
- pip安装python库总是超时或出错的解决办法