【问题标题】:Tensorflow Installation Unresponsive on Windows 7TensorFlow 安装在 Windows 7 上无响应
【发布时间】:2018-04-10 04:59:48
【问题描述】:

我正在尝试按照https://www.tensorflow.org/install/install_windows 使用本机 pip 安装在 Windows 7(64 位)上安装 Tensorflow(仅限 CPU)。

首先,我下载了 Python 3.5.2(64 位)。这很成功。

然后,我尝试发出适当的命令(在 cmd 中):

pip3 install --upgrade tensorflow

一个新窗口的快速闪现,然后……什么都没有。没有错误或超时,甚至没有标准的“收集张量流”,只是一个闪烁的光标。在我的系统关闭之前,此 cmd 窗口无法关闭并保持活动状态。

然后我尝试了以下方法:

python -m pip install tensorflow

它看起来很有希望。

Collecting tensorflow

然后:

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))':/simple/tensorflow/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))':/simple/tensorflow/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))':/simple/tensorflow/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))':/simple/tensorflow/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('timed out',))':/simple/tensorflow/
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow

之后我可以关闭这个窗口。

我还尝试了以下方法:

pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl

它会导致与以前相同的问题。一个闪烁的光标,无法关闭窗口,在关闭之前一直保持活动状态。

Unable to install tensorflow on windows 7 上找到了另一种方法。下载该轮文件并运行如下:

python -m pip install tensorflow-1.0.1-cp35-cp35m-win_amd64.whl

再次,看起来很有希望,但返回代理错误。所以我尝试禁用我的防病毒软件并再次运行。最后,一些新的东西!连接超时错误。希望朝着正确的方向迈出一步?!

感谢任何建议。

【问题讨论】:

    标签: tensorflow pip python-3.5 windows-7-x64


    【解决方案1】:

    我发现是我的代理设置干扰了安装,所以我更改了这些设置。

    然后我从 https://pypi.python.org/pypi/tensorflow/1.0.1 下载了所需的 .whl 文件

    wheel;
    six (>=1.10.0);
    protobuf (>=3.1.0);
    numpy (>=1.11.0);
    and mock (>=2.0.0)
    

    将这些 .whl 文件保存到正确的文件夹后,我在 cmd 中运行了它(禁用了我的防病毒软件):

    python -m pip install tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
    

    六、protobuf、numpy、mock、tensorflow安装成功。

    安装验证者:

    python
    
    import tensorflow as tf
    hello = tf.constant('Hello!')
    sess = tf.Session()
    sess.run(hello)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-10
      • 2017-07-17
      • 1970-01-01
      • 2018-01-06
      • 1970-01-01
      • 2016-02-17
      • 2017-08-21
      • 1970-01-01
      相关资源
      最近更新 更多