简体   繁体   English

在Windows 10上安装tensorflow-gpu

[英]Install tensorflow-gpu on windows 10

I found all information about python3 but cannot find anything about python2. 我找到了有关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

I followed https://www.tensorflow.org/install/install_windows#CommonInstallationProblems and http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/ to install CUDA and I get: 我遵循https://www.tensorflow.org/install/install_windows#CommonInstallationProblemshttp://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

So I think I am good on this side. 所以我认为我在这方面很好。 I just need the pip command to install tensorflow-gpu . 我只需要pip命令来安装tensorflow-gpu

I found a link to a version of tensorflow-gpu which should work, copied the link and tried but I get that: 我找到了一个可以正常工作的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.

EDIT: 编辑:

So I uninstall python2 and reinstall python3 but it still does not work: 所以我卸载了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

EDIT: 编辑:

I wrote an article about it: https://leobenkel.com/2018/04/tensorflow-gpu-windows10-tutorial/ 我写了一篇关于它的文章: https : //leobenkel.com/2018/04/tensorflow-gpu-windows10-tutorial/

For now Tensorflow is only supported on 64 bits installations of Python versions 3.5 and 3.6 目前,仅在Python版本3.5和3.6的64位安装中支持Tensorflow

If one of the following versions of Python is not installed on your machine, install it now: 如果您的计算机上未安装以下Python版本之一,请立即安装:

 Python 3.5.x 64-bit from python.org Python 3.6.x 64-bit from python.org 

Check TensorFlow website for more details 检查TensorFlow网站以获取更多详细信息

while i was trying to install the gpu based tensorflow the same problem was found,and that was the versions not satisfy. 当我尝试安装基于gpu的tensorflow时,发现了相同的问题,那是版本不令人满意。 and solution to the problem i found after searching was if you have currently installing the latest version of python suppose at first i had install python3.7.x and when i was try to install the gpu version tensorflow the problem arose. 我在搜索后发现的问题的解决方案是,如果您当前正在安装最新版本的python,则假设一开始我已经安装了python3.7.x,而当我尝试安装gpu版本的tensorflow时,问题就出现了。 reason was the for new version of python the tensorflow-gpu was not release yet . 原因是针对python新版本的tensorflow-gpu尚未发布。 so ,you have to install the later version say python3.6 version type to make it works. 因此,您必须安装较高的版本(例如python3.6版本类型)才能使其正常工作。 good luck!! 祝好运!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM