Windows 7上的Tensorflow安装没有响应
我正在尝试在Windows 7(64位)上安装Tensorflow(仅限CPU),并按照使用本机pip安装 首先,我下载了Python 3.5.2(64位)。这是成功的 然后,我尝试发出相应的命令(在cmd中): 一个新窗口的快速闪烁,然后…什么都没有。没有错误或超时,甚至没有标准的“收集tensorflow”,只是一个闪烁的光标。在我的系统关闭之前,此cmd窗口无法关闭并保持活动状态 然后我尝试了以下方法:Windows 7上的Tensorflow安装没有响应,tensorflow,pip,python-3.5,windows-7-x64,Tensorflow,Pip,Python 3.5,Windows 7 X64,我正在尝试在Windows 7(64位)上安装Tensorflow(仅限CPU),并按照使用本机pip安装 首先,我下载了Python 3.5.2(64位)。这是成功的 然后,我尝试发出相应的命令(在cmd中): 一个新窗口的快速闪烁,然后…什么都没有。没有错误或超时,甚至没有标准的“收集tensorflow”,只是一个闪烁的光标。在我的系统关闭之前,此cmd窗口无法关闭并保持活动状态 然后我尝试了以下方法: python -m pip install tensorflow pip insta
python -m pip install tensorflow
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl
有一阵子它看起来很有希望
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
以后我可以关上这扇窗户
我还尝试了以下方法:
python -m pip install tensorflow
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl
这导致了与以前相同的问题。闪烁的光标无法关闭窗口,在关闭前保持活动状态
在上找到另一个方法。下载所述轮子文件并按如下方式运行:
python -m pip install tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
同样,它看起来很有希望,但出现了代理错误。因此,我尝试禁用我的防病毒软件并再次运行。终于有了新东西!连接超时错误。希望朝着正确的方向迈出一步
非常感谢您的建议。我发现是我的代理设置干扰了安装,所以我更改了这些设置 然后我从下载了所需的.whl文件 将这些.whl文件保存到正确的文件夹后,我在cmd中运行此文件(禁用防病毒): 成功安装了protobuf、numpy、mock和tensorflow 已通过以下方式验证安装:
python
import tensorflow as tf
hello = tf.constant('Hello!')
sess = tf.Session()
sess.run(hello)
python
import tensorflow as tf
hello = tf.constant('Hello!')
sess = tf.Session()
sess.run(hello)