【发布时间】:2018-09-11 06:53:26
【问题描述】:
我找到了有关 python3 的所有信息,但找不到有关 python2 的任何信息。
> pip install --upgrade tensorflow-gpu
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from versions: )
No matching distribution found for tensorflow-gpu
我跟着https://www.tensorflow.org/install/install_windows#CommonInstallationProblems 和http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/ 安装了CUDA,我得到了:
> nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:08:12_Central_Daylight_Time_2017
Cuda compilation tools, release 9.1, V9.1.85
所以我认为我在这方面做得很好。
我只需要pip 命令来安装tensorflow-gpu。
我找到了一个指向 tensorflow-gpu 版本的链接,它应该可以工作,复制了链接并尝试了,但我明白了:
> pip install --upgrade https://pypi.python.org/packages/23/ad/63ae65999fd42a3e8d0044245e52513b31764167797651bef3ceb5202001/tensorflow_gpu-1.7.0-cp36-cp36m-win_amd64.whl#md5=7d780aa2c9f73c1ea9d3b87422aca096
tensorflow_gpu-1.7.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
编辑:
于是我卸载了python2并重新安装了python3,但还是不行:
> pip --version
pip 9.0.3 from c:\program files (x86)\python36-32\lib\site-packages (python 3.6)
> pip install --upgrade tensorflow-gpu
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from versions: )
No matching distribution found for tensorflow-gpu
编辑:
我写了一篇关于它的文章:https://leobenkel.com/2018/04/tensorflow-gpu-windows10-tutorial/
【问题讨论】:
-
我更新了我的问题,我放弃了使用python2
-
你已经重新安装了 32 位 python 。安装 64 位 而不是 32 位。检查我的其他answer here
-
我发现这个页面说
tensorflow-gpu只适用于 python3.5 ,是真的吗? github.com/tensorflow/tensorflow/issues/8251
标签: python windows tensorflow