簡體   English   中英

在Windows 10上安裝tensorflow-gpu

[英]Install tensorflow-gpu on windows 10

我找到了有關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#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

所以我認為我在這方面很好。 我只需要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/

目前,僅在Python版本3.5和3.6的64位安裝中支持Tensorflow

如果您的計算機上未安裝以下Python版本之一,請立即安裝:

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

檢查TensorFlow網站以獲取更多詳細信息

當我嘗試安裝基於gpu的tensorflow時,發現了相同的問題,那是版本不令人滿意。 我在搜索后發現的問題的解決方案是,如果您當前正在安裝最新版本的python,則假設一開始我已經安裝了python3.7.x,而當我嘗試安裝gpu版本的tensorflow時,問題就出現了。 原因是針對python新版本的tensorflow-gpu尚未發布。 因此,您必須安裝較高的版本(例如python3.6版本類型)才能使其正常工作。 祝好運!!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM