【发布时间】: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