您好,欢迎来到年旅网。
搜索
您的当前位置:首页安装tensorflow提示连接失败(实测)

安装tensorflow提示连接失败(实测)

来源:年旅网
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x102a94cf8>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/tensorflow/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x102a94710>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/tensorflow/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x102a946a0>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/tensorflow/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x102a94278>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/tensorflow/
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow

pip的幺蛾子

1.pip的时候出现Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))…………

一、原因


pip的时候各种关卡了它的网速,导致网速过慢或者安装失败

二、解决方法(一劳永逸)

国内的pip源,如下:

阿里云

中国科技大学

豆瓣(douban)

清华大学

中国科学技术大学

通过配置文件自动调取默认的源,经实测,速度杠杠,方法如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com

 
 
    1. Linux下,修改 ~/.pip/pip.conf (没有就创建一个文件夹及文件。文件夹要加“.”,表示是隐藏文件夹)
      在文件上写入上面配置文件中的内容

    因篇幅问题不能全部显示,请点此查看更多更全内容

    Copyright © 2019- oldu.cn 版权所有 浙ICP备2024123271号-1

    违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

    本站由北京市万商天勤律师事务所王兴未律师提供法律服务