尝试使用python 3.5在Windows 10上安装Tensorflow时出现NewConnectionError

时间:2017-07-28 19:35:14

标签: tensorflow

我目前正在尝试使用Python 3.5安装tensorflow,我遇到了新的连接错误。我试图遵循tensorflow的安装指南。有没有人见过这个问题并想出一个解决方案?感谢。

c:\>pip3 install --upgrade tensorflow
Collecting tensorflow
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002245E6C30F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/tensorflow/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002245E6D0470>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/tensorflow/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002245E6D05C0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',)': /simple/tensorflow/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002245E6D0710>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/tensorflow/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002245E6D0860>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/tensorflow/
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

2 个答案:

答案 0 :(得分:1)

这不是确定的,但我建议采取一些行动:

  1. 考虑从同一网络上的其他计算机或甚至不同的网络进行测试,以测试您可能遇到的实际网络问题。
  2. 这可能是服务器的临时问题,请稍后再试。
  3. 尝试使用pip安装其他一些软件包,以排除可能存在的问题
  4. 不必使用pip安装tensorflow,您可以按this link通过anaconda安装,或this link从源安装tensorflow(但是,源安装不正式支持视窗)

答案 1 :(得分:0)

在我的情况下,卡巴斯基阻止了连接。临时关闭它解决了我的问题。