用pip安装包时提示超时错误WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)
2020-04-22 21:54:24
在anaconda中用pip安装包时提示超时错误
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/pip/
解决方法:
如果要更新pip的版本 用命令
pip install --upgrade pip 出现上述错误,在其后加入 -i url
url可选:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
即
pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
这样每次都需要加一个源
已解决(
pip
命令python -m
pip
install --upgrade
pip
报错)
WARNING
: Re
trying
(Re
try
(
total
=0,
connect
=None,
read
=None,
redirect
=None,
status
=None)) after
connect
ion broken by ‘SSLError(SSLEOFError(8,‘EOF occurred in violation of protocol (_ssl.c:997)’))’: /pypi/simple/
pip
2018.1.22解决办法
一般情况下
PIP
出现
Read
TimeoutError都是因为被GFW给墙了,所以一般遇到这种问题,我们可以选择国内的镜像来解决问题。
在Windows下:
C:\Users\Administrator\下新建
pip
文件夹,在创建
pip
.ini文件,拷贝下面代码进去,保存。
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
其实就是把python的源换成了清华源,应该能解决问题。
2016.12.4解决办法
延长等待
时
间完美解决问题
windows下在cmd中,linux在终端下输入如下命令
pip
安装第三方包
时
出现socket.timeout: The
read
operation timed out
超时
问题
在cmd中使用
pip
安装第三方包
时
有
时
候会出现
超时
问题,这个问题的原因就是网络连接速度过慢。有的
时
候可能不是你的电脑网速过慢而是由于下载的网站是外网因此受到了网速的限制。
我们有两个方法解决这个问题:
1.采用镜像服务器
这里推荐用清华大学的镜像服务器,速度十分稳定
在C:\Users\你的用户名 里新建
pip
文件夹,再建
pip
.ini
例如C:\Users\你的用户名\
pip
\
pip
.ini
pip
.ini 中写入:
[global]
index-url = https
解决方法一
由原因,最方便的方法就是将代理工具先暂
时
关闭,可以直接解决问题。
但是,这种方法因为暂
时
不能科学上网,如果要google或者看github的话,就会很麻烦,所以建议第二种方法
解决方法二
经过实践,如果
pip
版本高于20.2,则
pip
工具会经过系统的网络代理,所以将
pip
版本降低到<=20..
Traceback (most recent call last):
File "D:\Python\lib\site-packages\
pip
\_vendor\urllib3\response.py", line 331, in _error_catcher
Q1: conda虚拟环境下使用
pip
安装软件报错:
WARNING
: Re
trying
(Re
try
(
total
=0,
connect
=None,
read
=None,
redirect
=None,
status
=None)) after
connect
ion broken by 'ProxyError('Cannot
connect
to proxy.', New
Connect
ionError('<
pip
._vendor.urllib3.
connect
ion.HTTPS
Connect
ion obj
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
con...
:partying_face: ==> :soap: ==> :smiling_face_with_halo:
ephemetoot是用于删除旧嘟嘟声的Python命令行工具。
您应该已经安装了Python3和
pip
,并且手边有一个应用访问令牌。 更多详细信息可在
用
pip
安装:
pip
install ephemetoot
创建一个配置文件:
ephemetoot --init
首先在--test模式下运行:
ephemetoot --test
了解其他选项:
ephemetoot --help
您也可以在阅读文档
先前的工作
最初ephemetoot脚本是基于由
ephemetoot通过在很大程度上依赖于Mastodon.py包
您可以使用ephemetoot删除超过一定天数(默认为365天)的 ephemetoot 。 在以下情况下,可以选择删除嘟嘟声:
他们被钉住; 要么
它们包含某些主题标签; 要么
他们有一定的知名度; 要么
它们被单独列出以保留
对于所有
错误
,建议,请求请求或其他贡献,请查看。
此项目及其所有贡
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(dou..
错误
描述
anaconda使用
pip
安装包
时
会出现无法下载的问题,或者
pip
直接无反应,可能会出现如下
错误
提示
:
WARNING
: Re
trying
(Re
try
(
total
=4,
connect
=None,
read
=None,
redirect
=None,
status
=None)) after
connect
ion broken by 'New
Connect
ionError('<
pip
...