2017-07-28 51 views
1

我目前正在尝试安装tensorflow和Python 3.5,并且我正在运行一个新的连接错误。我正在尝试遵循tensorflow的安装指南。有没有人看过这个问题,并找出解决方案?谢谢。尝试在Windows 10上使用python 3.5安装Tensorflow时出现NewConnectionError

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 
+0

我会认为这是网络问题的临时性问题,您是否尝试过从另一台计算机上做同样的事情? –

+0

我有类似的问题,并通过使用包含所有科学软件包的英特尔版本的Python 3.5来解决它。安装完成后,你可以简单地执行'pip install tensorflow'或'pip install tensorflow-gpu',它可能会工作 –

+0

@OferSadan我目前还不能在另一台机器上尝试。我计划尝试另一台机器,甚至在我能够时联网。 –

回答

1

这不是决定性的,但我会提出几个动作:

  1. 考虑从另一台机器上测试在同一网络上,甚至不同的网络,来测试实际的网络问题,你可能有。
  2. 这可能是服务器的暂时问题,请稍后重试。
  3. 尝试安装一些其他的包点子,以排除与您的点子本身可能存在的问题
  4. 安装tensorflow不必与PIP做,你可以遵循this link通过蟒蛇安装,或this link安装张量来源(但是,源安装不正式支持窗口)
+1

这是一个网络错误。尝试了不同的网络,它运行良好。谢谢! –

0

在我的情况下,连接被卡巴斯基封锁。临时切换解决了我的问题。

相关问题