2017-10-28 141 views
1

我试图按照https://www.tensorflow.org/install/install_windows使用本地点安装在Windows 7(64位)上安装Tensorflow(仅限CPU)。在Windows 7上无响应的Tensorflow安装

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

于是,我试着发出适当的命令(CMD):

pip3 install --upgrade tensorflow 

一个新窗口的快速闪光,然后什么都没有。没有错误或超时,甚至没有标准的“收集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 

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

任何意见表示赞赏。

回答

1

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

我再从https://pypi.python.org/pypi/tensorflow/1.0.1

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

下载所需的文件.whl在正确的文件夹中保存这些文件.whl后,我在cmd中运行这个(我的杀毒软件被禁用):

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

六,protobuf,numpy,模拟和张量成功安装。

python 

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

安装已被证实