2017-07-28 80 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

在我的情況下,連接被卡巴斯基封鎖。臨時切換解決了我的問題。

相關問題