在Windows上安装Tensorflow的ConnectTimeoutError

时间:2017-05-04 11:20:41

标签: proxy tensorflow install

我正在试图安装Tensorflow,我得到以下内容:

    C:\>pip3 install --upgrade tensorflow
    Collecting tensorflow
      Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 
ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x00000240DAD78BA8>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/tensorflow/

我还尝试安装它在GitHub存储库上下载.whl,我也遇到了同样的错误:

C:\>pip3 install tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
Processing c:\tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
Collecting bleach==1.5.0 (from tensorflow==1.1.0)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001FEE571BCC0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/bleach/

我的电脑连接到我大学的网络,需要HTTP代理配置。可能是问题吗?我该怎么办呢?

1 个答案:

答案 0 :(得分:0)

因此pip工作突然落后于代理,您可以参考Using pip behind a proxy

但是对于你的候补你可以从(Python 2 CPU

下载Tensorflow轮

对于其他Python版本或CPU / GPU https://github.com/tensorflow/tensorflow#installation